@ECHO OFF
REM Enter temp directory.
%TEMP:~0,2%
CD %TEMP%
REM Try delete previously created
/renamed
files
which
was released after reboot.
DEL EditorLineEnds*.ttr
/Q
> nul
REM Try rename locked
file
.
REN EditorLineEnds.ttr
"EditorLineEnds_%date:~0,4%-%date:~5,2%-%date:~8,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%.ttr"
REM Display result.
DIR
/b
*.ttr
REM Back to batchfile path.
SET BatchPath=%~dp0
%BatchPath:~0,2%
CD %BatchPath%
请发表评论