If i play this batch file, it send me error message such like this, "the system cannot find the file specified"
I searched a lot, but i do not know ...
i saw this article already, but it did not work.
System cannot find the path specified
echo off
echo **** TEST BACK UP BATCH FILE STARTS ****
setlocal enabledelayedexpansion
:LOOP
FOR %%f in (C:\Web\FTP\A\*.txt) do (
xcopy /Y %%f "C:\Web\FTP\A\B\"
SET "file=%%~nf"
SET "mydate=!date:~10,4!!date:~7,2!!date:~4,2!"
SET "mytime=!time:~0,2!!time:~3,2!!time:~6,2!"
ren "C:\Web\FTP\A\B\%file%.txt" "!file!_!mydate!!mytime!.txt"
move /Y "C:\Web\FTP\A\!file!.txt" "C:\Web\FTP\A\C\in\"
)
timeout /t 15
goto LOOP