On 7/21/06, Chris Davis <[EMAIL PROTECTED]> wrote:
Does anyone know how to get the name of the day of the week in a batch file on XP, 2003 ???
You could write a simple program in the language of your choice to output it to a file and then read the file into the batch file. VFP can do this, as can pretty much every other language out there. Python, for example. Or you could use Windows Scripting Host (WSH) if that's installed and not disabled on the workstation. Sample code (looks good in GMail, untested) # DOW.BAT start /wait MyVFPProg.exe answer.txt echo <answer.txt MyVFPProg.prg (compiled to .exe) lparameters lcFilename strtofile(CDOW(DATE()), lcFilename) I don't believe there is any such functionality in the basic Windows CMD shell batch language, though. I've seen some basic date manipulations, to do things like name files Backup2006-07-21.bak, but not day-names. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

