I wrote script to remove temporary files. Script creates log with all files removed:
SET RemoveLog=RemoveLog_%date:~-4,4%_%date:~-10,2%_%date:~-7,2%__%time:~0,2%_%time:~3,2%.txt
(that will create file like RemoveLog_2014_03_09__09_12.txt
)
and to save something in this log I use:
ECHO. >> %MEMLET%\%RemoveLog%
(Empty line in this case)
This have been working fine so far but on one laptop something else is happening.
File is saved as RemoveLog_2014_03_09__
(09_12.txt
is missing)
And everywhere I used >> %MEMLET%\%RemoveLog%
in the script, In the log at the end of every line i see 9_12.txt
Why is this happening?