Search found 1 match

by Hung_war3
08 Oct 2010 01:14
Forum: DOS Batch Forum
Topic: Using a variable in file name when copying
Replies: 2
Views: 4610

Re: Using a variable in file name when copying

You can use this code to get date time (your computer time) set hh=%time:~0,2% if "%time:~0,1%"==" " set hh=0%hh:~1,1% set day=%Date:~-10,2% if "%Date:~-10,2%"=="%Date:~-10,2%" set day=-%Date:~-10,2% set month=%Date:~-7,2% if "%Date:~-7,2%"=="%D...