PDA

Click to See Complete Forum and Search --> : process.start problem


jag_chat
Aug 2nd, 2004, 11:17 PM
I would like to call a .NET executable file in a windows service at certain intervals of time. The following is the code snippet, I put in. I am not receiving any error in my error handling routine (as it writes as a log entry). But my problem is, the respective application doesn't popup on screen and get visible. I desperately need the application to be visible when it does some work (just to know basically the status and progress of the process it is doing). I copied calc.exe into the root to test it. But I didn't test with anything else. Can anybody help me please.

'first method
'Dim proc As Process = Process.Start("c:\calc.exe")

'second method
'Dim startInfo As New ProcessStartInfo("c:\calc.exe")
'startInfo.CreateNoWindow = False
'startInfo.WindowStyle = ProcessWindowStyle.Normal
'Process.Start(startInfo)

'third method
'Shell("c:\calc.exe"), AppWinStyle.NormalFocus, False)

nemaroller
Aug 3rd, 2004, 11:06 AM
I haven't had much luck with showing windows spawned by Process either, but there's more to it than the simple interface we've been given.

Obviously, a user must be logged in and looking at their desktop to see any GUI...