Re: numbers and batch files
alright going to use windows script file instead
Russ
Re: numbers and batch files
anyideas why this wont work
Code:
dim intDay
dim strCmd
intDay = 1
Set WshShell = WScript.CreateObject("WScript.Shell")
do
strCmd = "date 0" & intday & "/01/2005"
Wscript.echo strCmd
Return = WshShell.Run(strCmd, 1, true)
intDay = intDay + 1
loop until intDay => 10
get error The system cannot find the file specified.
cheers
Russ
Re: numbers and batch files
There is no such command as DATE. It's only accessible from within one of the command processors (e.g. COMMAND.COM or CMD.EXE). You could try constructing a command line something like this...
CMD.EXE /C DATE dd/mm/yyyy
Re: numbers and batch files
of course forgot as was running as cscript
Russ