Results 1 to 2 of 2

Thread: using variables in bat

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Location
    Lahti, Finland
    Posts
    7

    using variables in bat

    I am trying to create a bat which opens log file to notepad.

    Logfile is named by date ddmmyyyy.log

    var d;
    d= "13052004"
    notepad "Path\" + d + ".log"

    while executing, bat does not understand my variable d.

    Can anyone help me with this?

    -Jan

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,526
    Exaples of how to do this using batch files can be found at the following links:

    http://www.computerhope.com/batch.htm
    http://www.comp-air.com/vfrazee/batch/

    Or try a Google search for 'DOS batch files'

Posting Permissions

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



Click Here to Expand Forum to Full Width