megamazl
Goto Top

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.

Content-Key: 92360

Url: https://administrator.de/contentid/92360

Printed on: April 19, 2024 at 15:04 o'clock

Mitglied: 60730
60730 Jul 18, 2008 at 11:38:50 (UTC)
Goto Top
Servus,

: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ß
Member: Don-Michelangelo
Don-Michelangelo Jul 18, 2008 at 12:13:56 (UTC)
Goto Top
Alternativ zum Ping könnte man eigentlich auch die "sleep.exe" aus dem Windows Server Resource Kit nehmen, dürfte noch ne Ecke eleganter sein als mit ping das zu machen face-smile

Schönes WE noch face-smile
Member: megamazl
megamazl Jul 18, 2008 at 13:22:12 (UTC)
Goto Top
super, danke an beide, mit dem ping hats nicht geklappt, aber mit sleep.