Computing.Net > Forums > Disk Operating System > Dos date and time Question

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Dos date and time Question

Reply to Message Icon

Original Message
Name: drew
Date: October 27, 2000 at 12:51:16 Pacific
Subject: Dos date and time Question
Comment:

I want to rename a directory each day to the current date using a script. For example I would like to rename "aaa" to "102700" It is not important that the date resemble the one used in an example.
Thanks Drew


Report Offensive Message For Removal


Response Number 1
Name: Ronin
Date: October 27, 2000 at 14:24:05 Pacific
Reply: (edit)

Don't know if it is what you're looking for, but try

move [drive]:\olddir [drive]:\newdir


Report Offensive Follow Up For Removal

Response Number 2
Name: Laurence
Date: October 28, 2000 at 05:40:31 Pacific
Reply: (edit)

You can do this purely in batch or enlist
the aid of a third party utility.

This batch will parse the system date.
http://home7.inet.tele.dk/batfiles/monthly/sep2000.htm

After that you can do whatever you want with
the pieces.

"If you prefer, you can download send.com
Suppose that your communication program
captures input into a file named "temp" by default. You want to make a batch file which collects your electronic mail and stores it
in a file whose name is stamped with today's date. Include the line
send ren temp mail$M$D.$Y $_exit$_|command
in the file and things will work exactly as you wish." --from send.doc


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home








Do you have a Desktop Computer anymore?

No
Yes, but only at work
Yes, but its rarely used
Yes, and its a workhorse


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History




Data Recovery Software