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 863 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.

Ryan Ries
- 55,481
- 10
- 142
- 199
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>

Drifter104
- 3,773
- 2
- 25
- 39