none
Help with batch file script variables! RRS feed

  • Question

  • I need to copy files on a daily basis with different client numbers and specific dates.  I currently re-type the "plantid" and "date" manually each time I use the batch file.  How do I set the those variables once at the beginning of the script.  I've tries this:

    echo off
    color 17
    set plant =0091
    set date =20081103

    set localroot=\\co-atl-rw-01\rs
    rem set localroot=d:

    copy %localroot%\rs_input\D1_%plant%_*%date%.txt %localroot%\rs_input\D1_%plant%_Monday_%date%.txt

    but it doesn't work.  Any suggestions?

    • Moved by Mike Walsh FINModerator Thursday, November 6, 2008 4:46 AM Off-topic (Moved from MSDN and TechNet Search Feedback to Off-Topic Posts (Do Not Post Here))
    Wednesday, November 5, 2008 1:57 PM

Answers

All replies