VBScript to run apps conditional on weekday. Intended for use with Windows 10 Task Scheduler.
- Customize weekdayLoginApps.vbs
- Sections: weekdays, weekends and any day
- Uncomment (
'
) as necessary - Optional: WScript.Quit() reports final app status
- Copy weekdayLoginApps.vbs somewhere appropriate
- E.g. cmd:
copy weekdayLoginApps.vbs %LOCALAPPDATA%
- E.g. cmd:
- Open Task Scheduler and import scheduledTask.xml
- Customize
- Triggers: Any (default) or specific user
- Actions > Edit > Arguments: E.g.
//nologo "%LOCALAPPDATA%\weekdayLoginApps.vbs"
- Verify
- Run manually (right pane of Task Scheduler)
- At login (reboot or log off/on)
VBScript can be confusing. If "
fails try """
, a quoted quote.
Run the script manually from cmd.exe. Look for specific line numbers in the output.
cscript.exe weekdayLoginApps.vbs
- Batch script:
- Copy VB script somewhere appropriate
- Import scheduled task
- Customization questions
- Add VB script launch to Start Menu
- Further documentation
- T.B.D.!