Is the name of your batch script "Xcopy.bat" ? If yes change the name....
Looping xcopy script
-
30-08-2022 - |
Question
Trying to use xcopy
but when I put it in a batch script as:
Xcopy "C:\Users\%USERNAME%\Desktop\A" "C:\Users\%USERNAME%\Desktop\B" /E
and run it...it loops over and over again. But if I paste that line into command line and hit enter it works. Why is this and how do I fix this? Robocopy works fine in a script.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow