Right now, I currently have this working, but it's a workaround, which won't be optimal in the future.
I'm currently writing a service which will have to pass some command line arguments to a program, which will then handle some things behind the scenes that I don't need to worry about.
The problem i'm having is: Right now when I install my service, I need to go into the service's properties, and log in to it as my user. If I use the Local System (with interact with desktop checked), It doesn't work. (It actually doesn't fail either, which is strange, but aside the point).
I'm wondering if there is a General user I can programatically log in to (Like Network Service), which will get this to work. Or is it maybe a permissions issue?
Asked
Active
Viewed 102 times
0

Shreyos Adikari
- 12,348
- 19
- 73
- 82

Adam Sweeney
- 386
- 3
- 15
-
do you have a control over the other app, the one with command line? – NSGaga-mostly-inactive Apr 17 '12 at 14:53
-
no it's handled by another development team; i only have control over the one that passes the command line arguments – Adam Sweeney Apr 17 '12 at 14:59
-
1possible duplicate http://stackoverflow.com/questions/1369236/how-to-run-console-application-from-windows-service – Antonio Bakula Apr 17 '12 at 15:04
-
In a way yes it is, but there isn't a working answer for it. – Adam Sweeney Apr 17 '12 at 16:35