Current code:
SET UUCDDRIVE=nocd FOR %%i IN (c d e f g h i j k l m n o p q r s t u v w x y z) DO IF EXIST %%i:\UCD SET UUCDDRIVE=%%i: IF NOT "%UUCDDRIVE%"=="nocd" ( IF EXIST %UUCDDRIVE%\ALL XCOPY %UUCDDRIVE%\ALL %SystemDrive%\UOS /E /C /I /Q /H /Y IF EXIST %UUCDDRIVE%\PDC XCOPY %UUCDDRIVE%\PDC %SystemDrive%\UOS /E /C /I /Q /H /Y ) ELSE ( ECHO. ECHO Ultimate Update CD not found. ECHO. PAUSE )
ECHO is turned OFF at the start of this script. During execution, the XCOPY commands return the error:
Current directory doesn't exist.
And they don't copy the files over.
Here's the thing, if I add an "ECHO ON" statement before the "IF" statement or if I don't turn ECHO off at all, it works flawlessly. I tried using CMDOW to hide the window during the "ECHO ON" time and it, again, ceased to work.
It's got me stumped how an "XCOPY" command could require ECHO to be ON for it to work. Any thoughts?



Help

Back to top









