/win10-weekday-login-apps

VBScript to run apps conditional on day of week. Includes import template for Windows 10 Task Scheduler.

Primary LanguageVBScriptGNU General Public License v3.0GPL-3.0

Weekday Login Apps for Win10

VBScript to run apps conditional on weekday. Intended for use with Windows 10 Task Scheduler.

Steps

  • 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%
  • 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)

Troubleshooting

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

Reference

VBScript

WScript.Shell

WScript.Quit

Shell.Run

Weekday/vbMonday

Windows

Windows Environment Variables

Upcoming / Call for Contribution

  • Batch script:
    • Copy VB script somewhere appropriate
    • Import scheduled task
    • Customization questions
    • Add VB script launch to Start Menu
  • Further documentation
  • T.B.D.!