|
-
July 22nd, 2008, 03:03 PM
#1
How do you start another process from a Window Service?
From a Window Service written in VS 2005 using CLR C++, I have been unable to start a another process. I tried using the suggestion made in a previous thread (see: How do you start another process using CLR C++ ?
http://www.codeguru.com/forum/showthread.php?t=457407).
The following code works quite nicely from a CLR C++ console program:
Code:
System::Diagnostics::Process::Start(sPathname1);
where sPathname1 is the complete path of an executable application.
The event log for the Service indicates that the run trigger was activated, and the Windows Task Manager shows that, in fact, the target executable is running, but there is no obvious computer screen evidence that the executable is running.
I suspect that there is some 'threading' problem here, but I am uncertain of that. I really don't know what's going on.
Any ideas what I am doing wrong?
mpliam
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|