|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Echo %date% doesn't work in Windows NT 4.0
Hi all,
I'm new to this forum I want to create a batch file that export my oracle database. The export file must be named with current date and time like this Date 06/19/2008 Time 10:12:15.5 File Name MyFile_19-06-2008_10_12_15 I wrote a batch file which works fine on Windows XP But in windows NT MY_FILE_NAME=MyFile_%DATE:~7,2%_%DATE:~4,2%_%DATE: ~10,4%-%TIME:~0,2%_%TIME:~3,2%_%TIME:~6,2% This command doesn't work. I want to store current date and time in a variable so that I can extract Day, Month, Year, Hours, Minutes and Second separately. Please help me in this Thanks & Regards Manoj |
![]() |
| Viewing: Web Development Archives > FAQs > MS DOS > Echo %date% doesn't work in Windows NT 4.0 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|