batch script if exist xcopy
I need a little help with one batch script and xcopy. I have a folder with a lot of different folders inside. For example: "Test" is the primary directory and inside I have New folder 1, New folder 2, New folder 3... Every week these folders have to copy to different servers. My script is: if exist "%dir%\New folder 1" ( xcopy %dir%\New folder 1 C:\Users\user1\New folder1 /i /q /s /y /z echo New folder 1 copied successfully ) if exist "%dir%\New folder 2" ( xcopy %dir%\New folder 2 C:\Users\user1\New folder2 /i /q /s /y /z echo New folder 2 copied successfully ) I need to update my script to s
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.