Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

DOS prompt - date question

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

DOS prompt - date question

Old 06-16-06, 07:38 PM
  #1  
Senior Member
Thread Starter
 
Join Date: Mar 2003
Posts: 789
Likes: 0
Received 0 Likes on 0 Posts
DOS prompt - date question

Hi,

I need to run a program everyday that needs as one of the parameters yesterday's date in YYYYMMDD format.

I need to run this from the DOS prompt, so somehow I need a batch file that generates yesterday's date. This batch file should be able to handle crossover to previous months (i.e. if I run it on June 1, 2006, the parameter should read 20060531), crossover to previous years, and leap years.

How could I implement this? Thanks for your help!

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.