I got a small problem. I have a program which has to run all the time on the server (Windows 2008). It's not a service but a normal application. It is located in startup. The problem is its working with a database and isn't allowed to run two times. When someone logs in via RDP it gets started a second time. Is there a way to prevent it within Windows?
Asked
Active
Viewed 722 times
2 Answers
1
If you don't want an application to be launched at user login, then take it out of the Startup folder.
![](../../users/profiles/104624.webp)
Ryan Ries
- 55,011
- 9
- 138
- 197
0
Run the application from a batch script
tasklist /FI "IMAGENAME eq myapp.exe" 2>NUL | find /I /N "myapp.exe">NUL
if "%ERRORLEVEL%"=="1" <call executable>
![](../../users/profiles/278665.webp)
Drifter104
- 3,693
- 2
- 22
- 39