Ok so this is probably not the right place to ask about this but I’ll give it a shot.
I’ve created a batch script that copies an executable file to multiple servers. It looks something like this.
“cls
echo Installing TimeCard!
echo.
echo Please wait...
echo.
echo Trying to overwrite files on Boris.
echo.
:BorTimeFail
copy \\Magilla\vha\Updates\WinPIMS\pjtTimeCard.exe \\Boris\e$\VHA\TimeCard\ >NUL
IF ERRORLEVEL == 1 GOTO BorTimeFail
echo."
(Code above repeated 10 times with different server names.)
"cls
echo Success!
echo.
echo TimeCard has been installed on all servers.
echo.
Pause”
The problem I’m having is that if the file is in use on the first server it continues to loop until it copies successfully. Is there anyway for me to make this script a bit more advanced? Say using VBScript to remember what servers error out and after its done each server go back and retry the ones that failed?
Thanks in advance!
P.
I’ve created a batch script that copies an executable file to multiple servers. It looks something like this.
“cls
echo Installing TimeCard!
echo.
echo Please wait...
echo.
echo Trying to overwrite files on Boris.
echo.
:BorTimeFail
copy \\Magilla\vha\Updates\WinPIMS\pjtTimeCard.exe \\Boris\e$\VHA\TimeCard\ >NUL
IF ERRORLEVEL == 1 GOTO BorTimeFail
echo."
(Code above repeated 10 times with different server names.)
"cls
echo Success!
echo.
echo TimeCard has been installed on all servers.
echo.
Pause”
The problem I’m having is that if the file is in use on the first server it continues to loop until it copies successfully. Is there anyway for me to make this script a bit more advanced? Say using VBScript to remember what servers error out and after its done each server go back and retry the ones that failed?
Thanks in advance!
P.