I am trying to figure out how to generate a 24hour date time stamp on my backed up file? I am using WinXP.
code:
rem Start1
for /F "tokens=2,3,4 delims=/ " %%i in ('date/t') do set d=%%k"-"%%i"-"%%j"-"
for /F "tokens=1,2,3 delims=:. " %%i in ('time /T') do set t=%%i%%j%%k
cd REM The next line copies the file
copy C:\just C:\bak\d%%t%-just.txt"
REM End1
end code:
This works but the time on it is a 12hour clock and has a or p for am and pm.
Please help!!!
code:
rem Start1
for /F "tokens=2,3,4 delims=/ " %%i in ('date/t') do set d=%%k"-"%%i"-"%%j"-"
for /F "tokens=1,2,3 delims=:. " %%i in ('time /T') do set t=%%i%%j%%k
cd REM The next line copies the file
copy C:\just C:\bak\d%%t%-just.txt"
REM End1
end code:
This works but the time on it is a 12hour clock and has a or p for am and pm.
Please help!!!