Heya everyone,
I'm creating an asp.net web page and I need to execute a program serverside. I'm using Windows XP with .net. The code I'm using is as follows: (Used Calc.exe as an example)
Dim ProcessStartInfo As New System.Diagnostics.ProcessStartInfo
ProcessStartInfo.FileName = "C:\WINDOWS\system32\CALC.EXE"
ProcessStartInfo.Arguments = "" ' your parameters here
ProcessStartInfo.WorkingDirectory = "C:\WINDOWS\system32\"
ProcessStartInfo.WindowStyle = ProcessStartInfo.WindowStyle.Maximized
ProcessStartInfo.UseShellExecute = True
ProcessStartInfo.CreateNoWindow = False
System.Diagnostics.Process.Start(ProcessStartInfo)
The program runs, but does not display. When I check in Task Manager, the program is running. But I can see it otherwise? Can anyone tell me what I'm doing wrong? I've also tried to use the Shell("calc.exe") function... But the same problem occurs?
Thankx in advanced
Karl
:)http://support.microsoft.com/default.aspx?scid=kb;en-us;555134
Thankx very much for your help...
Problem solved...
:)
0 comments:
Post a Comment