//Declare and instantiate a new process component. System.Diagnostics.Process process1; process1= new System.Diagnostics.Process();
//Do not receive an event when the process exits. process1.EnableRaisingEvents = false;
//The "/C" Tells Windows to Run The Command then Terminate string strCmdLine; strCmdLine = "C:\WINDOWS\Microsoft.NET\Framework\1.1.4322\regsvcs.exe /fc C:\MyService.dll2; System.Diagnostics.Process.Start("CMD.exe",strCmdLine); process1.Close();
System.ComponentModel.Win32Exception: Den angivne fil blev ikke fundet at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName, String arguments) at StartProj.MainForm.buttonRunCommand_Click(Object sender, EventArgs e) in c:\vss\funkicommunicator\startproj\mainform.cs:line 439
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.