Created
June 26, 2023 14:53
-
-
Save swateek/ca115dac2f1cb8cd60fb97ac63a967fe to your computer and use it in GitHub Desktop.
Working With Windows Task Scheduler From CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo %DATE% %TIME%>C:\Users\Swateek\Downloads\tmp\abc_%RANDOM%.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schtasks /delete /TN "rs-tmp-create-file" /f | |
schtasks /create /sc MINUTE /mo 1 /tn "rs-tmp-create-file" /tr "C:\Users\Swateek\Downloads\create_test_files.bat" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment