When the program gets to the If statement, it just ends (doesn't go to the next line, which is 'pause' for debugging).
set yymm=%DATE:~12,2%%DATE:~4,2%
set DD=%DATE:~7,2%
robocopy "\\client system\Users\login name\Videos" "F:\Temporary\Videos\Process\New Batch\%yymm%%dd%\Netbook\Videos" /mir
set /p %user%=Did Netbook Videos complete? (y/n):
IF %user%=="y" (del "\\client system\Users\login name\Videos\"*.* /s/q) ELSE (echo Skipping)`
I know that there's a /move switch for robocopy command, but it tells me that it doesn't have access to the destination folder (the batch program runs with administrative access and it is running in the profile that created the folder), so I wrote a work around.
Any ideas why is this happening?
Aucun commentaire:
Enregistrer un commentaire