Re: DOS SET Command to reference "Yesterday's Date"


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by Frank on October 23, 2007 at 16:59:53:

In Reply to: Re: DOS SET Command to reference "Yesterday's Date" posted by Valerie on October 10, 2007 at 04:18:19:

Found a site that some industrious individual created a batch file to do date math:

http://www.tech-recipes.com/batch_file_programming_tips1096.html (this can be simplifed for our needs.)

Then I got to thinking, why not have two batch files. On runs before midnight, writes to file the date or filename with date incorporated. Then a second batch file runs after midnight, opens the file and reads the date or file name and uses that for yesterdays date for whatever renames or archiving that you need to attend to.

Frank




Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]