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
Printable View
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
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'