Re: Starting a process "cmd.exe" from within a service...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Marius,
When you say CMD.EXE 'hangs', does that mean that the window never
appears? If so, I suspect that the process is running ok but it's not
running on the visible desktop. Try this as a test:

1) Open your service in the control panel
2) Change the service to "Log on as: Local System Account"
3) Check "Allow service to interact with desktop"
4) Run the test again

Another thing to try is to have your service write its output to a
file, and then check to see if that file exists when your test is
complete.

Hope this helps,
John

.



Relevant Pages

  • Re: Creating a process with its window hidden
    ... EnumThreadWindows; the problem is we can't have the application window ... appearing on the visible desktop at all - we don't want the user to detect ... and display its main window and then move it to the position you want it at. ... as an application may choose to ignore these settings. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Creating a process with its window hidden
    ... itmanager wrote: ... EnumThreadWindows; the problem is we can't have the application window appearing on the visible desktop at all - we don't want the user to detect any changes to the primary display. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Windows Open Off the Desktop...
    ... "Martin" wrote: ... >> windows opens up a window that is off the visable desktop, ... Winzip just opened a window in a place that I can't ... > Then use the arrow keys to move the window to the visible desktop and then ...
    (microsoft.public.windowsxp.general)
  • Re: Windows Open Off the Desktop...
    ... > I've been using Windows for a long time, but a burning questions that begs ... > answering right now for me (because I'm having trouble now) is: ... Winzip just opened a window in a place that I can't ... Then use the arrow keys to move the window to the visible desktop and then ...
    (microsoft.public.windowsxp.general)