wie xcopy alle 5 Minuten als Loop zur Überwachung?
xcopy soll alle 5 Minuten erneut ausgeführt werden.
hallo zusammen.
Gibt es für xcopy einen Befehl, daß es alle 5 Minuten erneut ausgeführt wird?
Meine derzeitige xcopy-Datei sieht so aus:
xcopy \\192.168.1.1\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.2\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.3\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.4\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.5\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.6\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.7\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.8\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.9\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.10\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.11\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.12\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
wie man sieht, sollen von 12 verschiedenen Rechnern bestimmte Ordner abgefragt werden und neuere Dateien automatisch auf einen anderen Rechner kopiert werden. Ich möchte allerdings nicht immer wieder xcopy starten, sondern xcopy soll geloopt werden, bis ich es abbbreche.
Hat jemand da eine Idee?
Danke im voraus.
Gibt es für xcopy einen Befehl, daß es alle 5 Minuten erneut ausgeführt wird?
Meine derzeitige xcopy-Datei sieht so aus:
xcopy \\192.168.1.1\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.2\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.3\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.4\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.5\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.6\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.7\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.8\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.9\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.10\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.11\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
xcopy \\192.168.1.12\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
wie man sieht, sollen von 12 verschiedenen Rechnern bestimmte Ordner abgefragt werden und neuere Dateien automatisch auf einen anderen Rechner kopiert werden. Ich möchte allerdings nicht immer wieder xcopy starten, sondern xcopy soll geloopt werden, bis ich es abbbreche.
Hat jemand da eine Idee?
Danke im voraus.
Please also mark the comments that contributed to the solution of the article
Content-Key: 92360
Url: https://administrator.de/contentid/92360
Printed on: May 4, 2024 at 07:05 o'clock
3 Comments
Latest comment
Servus,
Gruß
:run
if exist \\192.168.1.1\C$ xcopy \\192.168.1.1\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
if exist \\192.168.1.2\C$ xcopy \\192.168.1.2\C:\Programme\Webcasting_Komplettinstallation\Aufnahme C:\webcast\Aufnahme /S /D /V /F /Y
rem usw...
ping -n 5000 localhost >nul
goto run
Gruß