I have a robocopy batch file in C: \ batch. Here is the batch file:
set LOG="C:\Log\robolog.txt"
set START1="C:\WORK"
set END1="\\fs-02\Work"
Robocopy %START1% %END1% /MIR /PURGE /SEC /SECFIX /R:1 /W:5 /V /ETA /LOG:%LOG%
My question is, I open cmd from the location (c: \ batch) that contains this batch file and run it from there, it just runs it again and again and never ends .... and I can't even finish cmd .... Ctrl+Conly speed up the cycle .....
but if cmd the starting location is somewhere else, the batch file works and finishes fine.
Any idea why I CANNOT RUN this robocopy batch file directly from its location?
source
share