Skip to content

Instantly share code, notes, and snippets.

@wsoyka
Forked from damc-dev/runBashScript.bat
Last active March 2, 2019 10:57
Show Gist options
  • Save wsoyka/12062bd887163944a0b7d8279cc4f8c8 to your computer and use it in GitHub Desktop.
Save wsoyka/12062bd887163944a0b7d8279cc4f8c8 to your computer and use it in GitHub Desktop.
Execute Bash Script (Using WSL) from Windows Task Scheduler
cmd /c "wsl /path/to/file/on/linux/subfilesystem"
or
cmd /c "wsl /mnt/c/path/to/file/on/windows/filesystem"
@wsoyka
Copy link
Author

wsoyka commented Mar 2, 2019

To make it - or any task scheduler cmd run in background, set it to: "Run whether user is logged in or not"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment