Burke
06-14-2002, 12:50 PM
We currently used xcopy to copy updated software to our terminal servers. The command we use is
xcopy \\%origin\OneWorld\Prodb733 \\%Destination\OneWorld\Prodb733 /h /s /e .
The problem we are running into is if someone is in the application we are updating, which is very rare, we get a "sharing violation" error. Xcopy does not have an error code for this so there is not way to check for it. I'm trying to build in some error checking. Is there any way to encapsulate the command in WSH and have it catch this error or is there a way to do this within WSH?
xcopy \\%origin\OneWorld\Prodb733 \\%Destination\OneWorld\Prodb733 /h /s /e .
The problem we are running into is if someone is in the application we are updating, which is very rare, we get a "sharing violation" error. Xcopy does not have an error code for this so there is not way to check for it. I'm trying to build in some error checking. Is there any way to encapsulate the command in WSH and have it catch this error or is there a way to do this within WSH?