I am trying to create and install a .NET app on a windows server that is always on, but I am running into problems. I have heard that I should not make it a Windows service (and would personally rather have a dialog app so I can see progress, etc) so I am trying to use the task scheduler. However, the task scheduler keeps trying to close my app prematurely, when it should only open it and leave it open.
Any ideas how I could have my dialog app run on startup (and stay running) on my server?
Add apps to startup in Windows 10. Open Run command box by pressing Windows logo + R keys. In the Run command field, type shell: startup and then press Enter key to open Startup folder. Copy and paste the app shortcut from the desktop to this Startup folder and the app will be added to startup.
Please open Task Scheduler and create a task. Then click Triggers tab and configure Begin the task: At startup. Then also click Actions tab, configure Action: Start a program and add that programs which you want to start when server start. In addition, you can also consider computer startup scripts.
You can do it with a Scheduled Task which wont have problems with users logging on/off.
Taskschd.msc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With