Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

DerekRoberts/win10-weekday-login-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.!

About

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

Topics

Resources

License

Stars

Watchers

Forks