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

    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


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


    thanks
    Last edited by sjumma; 07-15-04 at 11:31.
    bigfoots

  2. #2
    Join Date
    Jun 2004
    Posts
    29

    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 (www.perl.org)
    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
  •