User Tools

Site Tools


software:microsoft:windows:taskscheduler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
software:microsoft:windows:taskscheduler [2020/11/09 17:23] superwizardsoftware:microsoft:windows:taskscheduler [2021/05/26 00:20] – [How to run cmd from Task Scheduler] superwizard
Line 1: Line 1:
 +====== Task Scheduler ======
 +
 +------------------------------------------------------------------------------------------------------------------------------------------------\\
 +
 +====== Shortcut to run Task Scheduler "Task" ======
 +
 +
 +<WRAP center round box >
 +2021-05-20
 +
 +
 +• Close Task Scheduler. Right-click an empty spot on your Desktop and select New > Shortcut. In the Create Shortcut window enter the following text:
 +<file txt temp.txt>    C:\Windows\System32\schtasks.exe /run /TN "marcus\TaskName"
 +
 +    C:\Windows\System32    
 +</file>
 +
 +Where "TaskName" is the name of the task you chose, from step 3. Note: Include the quotation marks around the TaskName or it will fail to successfully run the task. Click Next and then enter a name for the shortcut. When done, click Finish.
 +
 +From <https://superuser.com/questions/57694/setting-a-shortcut-to-trigger-task-scheduler> 
 +
 +
 +</WRAP>
 +
 ====== How to run cmd from Task Scheduler ====== ====== How to run cmd from Task Scheduler ======
 +
 +<WRAP round box >
 +Syncthing: Request revert of a receive only folder.
 +
 +Program/Script:\\  
 +
 +    cmd
 +
 +Add Arguments Optional: \\ 
 +<file txt temp.txt>
 +    /c "curl -X POST -H "X-API-Key:..." http://127.0.0.1:8384/rest/db/revert?folder=default"
 +</file>
 +
 +</WRAP>
 +
  
 <WRAP round box > <WRAP round box >
Line 7: Line 46:
  
 Add Arguments Optional: \\  Add Arguments Optional: \\ 
 +<file txt temp.txt>
     /c ""C:\Program Files\Python37\python.exe" "C:\Users\Public\Downloads\DropboxMaintenance\DropBoxMaintenance.py" D:\Server1\Dropbox >  "C:\Users\Public\Downloads\DropboxMaintenance\Dropbox\DropboxMxLog.txt""     /c ""C:\Program Files\Python37\python.exe" "C:\Users\Public\Downloads\DropboxMaintenance\DropBoxMaintenance.py" D:\Server1\Dropbox >  "C:\Users\Public\Downloads\DropboxMaintenance\Dropbox\DropboxMxLog.txt""
 +</file>
  
 </WRAP> </WRAP>
Line 21: Line 62:
  
 Add Arguments Optional: \\  Add Arguments Optional: \\ 
 +<file txt temp.txt>
     /c ""C:\Users\Public\Downloads\rclone-v1.51.0-windows-amd64\rclone.exe" sync --create-empty-src-dirs C:\Users\rosejasmine\Desktop\stuffforClients \\ERVER1\Dropbox\VPN\stuffforClients -v --log-file="C:\Users\Public\Downloads\rclone-v1.51.0-windows-amd64\rcloneMxLog.txt""     /c ""C:\Users\Public\Downloads\rclone-v1.51.0-windows-amd64\rclone.exe" sync --create-empty-src-dirs C:\Users\rosejasmine\Desktop\stuffforClients \\ERVER1\Dropbox\VPN\stuffforClients -v --log-file="C:\Users\Public\Downloads\rclone-v1.51.0-windows-amd64\rcloneMxLog.txt""
 +</file>
  
 </WRAP> </WRAP>
Line 88: Line 131:
  
  
 +<file txt temp.txt>
 +powershell.exe -executionpolicy bypass -file "Set-PowerShellScript.ps1"
 +</file>
 <code> <code>
-powershell.exe -executionpolicy bypass -file "Set-PowerShellScript.ps1" 
- 
 On the system that the task will be run from, open the Windows Task Scheduler. This can be found  On the system that the task will be run from, open the Windows Task Scheduler. This can be found 
 in the Start menu, under Start > Administrative Tools. in the Start menu, under Start > Administrative Tools.
software/microsoft/windows/taskscheduler.txt · Last modified: 2022/02/12 03:30 by superwizard