So this is on a windows 2003 server OS. I would like a batch file command that will set a "dateandtime" variable to display in this format. Right now this is the line that i copied from an example bat file.Fri Mar 27 12:05:50 2009
the problem is that it places the date and time in this formatCode::: Time log for /F "eol=; tokens=1,2,3,4 delims=/ " %%i in ('date /t') do set date=%%l-%%j-%%k for /f "eol=; tokens=1 delims= " %%i in ('time /t') do set time=%%iCould anyone please help me out with the proper syntax i should be using?2009-04-01 02:07
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks