Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schedule a .Net Core console application on windows using Task Scheduler

Tags:

Is it possible to schedule a .net core console application to run every day at a specific time using the Task Scheduler?

like image 850
Sandhya Avatar asked Apr 24 '17 18:04

Sandhya


People also ask

How do I schedule a console application in Windows Task Scheduler?

Create a Task using Task SchedulerIn General tab, provide task name and description. In Trigger tab, create new and provide task schedule date, time, and day. In Actions tab, click New and give Action step and Browse console application executable file and click OK. Right click on created task and Run.


1 Answers

I think you will have to set the value for "Start in" while creating the task in task scheduler to your app folder, that is D:\Test\Test1. The app will run in this folder and should be able to find the appsettings file.

like image 102
Prashant Mothukuri Avatar answered Sep 24 '22 02:09

Prashant Mothukuri