![]() WRITEFILE VBScript_Path " val = -1" /append SET VBScript_Path = %installdir & "\GetDay.vbs" SET ScriptingHost_Path = "c:\windows\System32\cscript.exe" IFFILE ScriptingHost_Path GOTO check_vbscript_file SET ScriptingHost_Path = "c:\windows\SysWOW64\cscript.exe" If the VB Script file does not exist this script attempts to create it. The script logic then uses this value to calculate the date of next Wednesday. ![]() This example uses the EXEC command to launch the Windows Scripting Host to run a VB Script file that returns a number between 1 and 7 indicating the current day of the week. Run a VBScript then use the numeric result Run a VBScript and use the numeric result
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |