Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003

    Arrow Unanswered: Batch file with dates

    i run batch file everyday for yesterday(say 14)

    How do i make that run today(14) for yesterday say 1 am and pass this

    batchfilename 714 (7 for month and 14 for yesterday at say 1 am on 15 th)

    for i do many copy commands in that batch file and i need to pass yesterday's date. I am doing from MS DOS

    copy n:\local\verifs1\%1?????.ver n:\local\schncube\ver\%1?????.ver

    Last edited by sjumma; 07-15-04 at 10:31.

  2. #2
    Join Date
    Jun 2004

    Try perl

    Did yopu notice that this is Unix shell scripts?

    DOS batch has very few useful utilities and is hopeless at date manipulation. You would do best to install a perl interpreter and run a perl script (
    You might manage using kixtart or an other DOS based script language but once you learn perl you'll never use anything else!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts