Yes, ExecFile is the command, while CreateProcess works only with Blitz+.
Here is a sample of a vbscript which writes in a file the day of week:
However, I would use only the weekday function, and retrieve the number of the day of the week; this because on an english O.S. you get, for example, 'Thursday', while on a german, the string written on the file would be 'Donnerstag'.
Sergio.
Here is a sample of a vbscript which writes in a file the day of week:
createfile(weekdayname(weekday(now))) Sub CreateFile(day) Dim fso, tf 'open the file Set fso = CreateObject("Scripting.FileSystemObject") Set tf = fso.CreateTextFile(".\weekday.txt", True) ' Write a line with a newline character. tf.WriteLine(day) tf.Close End Sub
However, I would use only the weekday function, and retrieve the number of the day of the week; this because on an english O.S. you get, for example, 'Thursday', while on a german, the string written on the file would be 'Donnerstag'.
Sergio.