Creating A Task Scheduler Task from a batch file

Creating A Task Scheduler Task from a batch file

HomeOther ContentCreating A Task Scheduler Task from a batch file
ChannelPublish DateThumbnail & View CountActions
Channel Avatar Andrei Jaume Willenska2021-01-05 19:46:27 Thumbnail
1,072 Views
A very simple video where I show you guys how to create a Task Scheduler Event on Windows. The event runs every week on Thursday.

I have included the code below in case you guys want it –

TimeSheetScript –
@ECHO OFF

:: This script will open the website set in the website variable

set website=/”https://www.andreijw.com/”

:: Use the default browser to open the input URL
start /”/” %website%

TimeSheetRunner –
@ECHO OFF

:: This will create an event scheduler task to run every thursday

set currentDir=%~dp0

set scriptToRun=TimeSheetScript.bat
set scriptPath=%currentDir%%scriptToRun%

echo Creating task to run the file – %scriptPath%

SCHTASKS /CREATE /SC WEEKLY /TN /”TimeSheet Opener/” /TR %scriptPath% /D THU

echo Action Complete
pause

My Website- https://www.andreijw.com

Please take the opportunity to connect and share this video with your friends and family if you find it useful.