Weekday

Blitz3D Forums/Blitz3D Beginners Area/Weekday

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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:

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.