문제

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.

도움이 되었습니까?

해결책

Is the name of your batch script "Xcopy.bat" ? If yes change the name....

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top