c#: spawn a process from a service
Posted on 2009-05-05
can someone show me a piece of code that works in c# - spawning a process (createprocess / process api) from a service ?
I dont need to run GUI applications or anything that demands a user to be logged on to the system, i just need to be able to run small worker jobs (exe / cmd files).
its not a problem outside the service, but inside it seems to be difficult and there are tonnes of examples on the net and discussions about it, those ive tried hasnt worked yet.
So would be thankful if you could post a code that works - thanks