MS DOS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives FAQs MS DOS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old June 19th, 2008, 07:33 AM
manoj91 manoj91 is offline
Registered User
Dev Archives Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 manoj91 User rank is Just a Lowly Private (1 - 20 Reputation Level)  
Time spent in forums: 10 m 37 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Web Development Archives FAQs MS DOS > Echo %date% doesn't work in Windows NT 4.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT