#pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { ShellExecute(NULL,"open","../../../Sirat1/START.EXE",NULL,NULL,SW_SHOWNORMAL); } };
System::Diagnostics::Process
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionusing namespace System::Diagnostics; Process^ myProcess = gcnew Process; myProcess->StartInfo->FileName = "file.ext"; myProcess->StartInfo->Verb = "Open"; myProcess->Start();
using namespace System::Diagnostics; Process^ myProcess = gcnew Process; myProcess->StartInfo->FileName = "file.ext"; myProcess->StartInfo->Verb = "Open"; myProcess->Start();
************** Texte de l'exception ************** System.ComponentModel.Win32Exception: Le fichier spécifié est introuvable à System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) à System.Diagnostics.Process.Start() à Lien_appli_DVD_Sira_AlHabib.Form1.button1_Click(Object sender, EventArgs e) dans g:\diiin\dvd\pgm_cpp\lien_appli_dvd\lien_appli_dvd\form1.h:ligne 98 à System.Windows.Forms.Control.OnClick(EventArgs e) à System.Windows.Forms.Button.OnClick(EventArgs e) à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.ButtonBase.WndProc(Message& m) à System.Windows.Forms.Button.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Assemblys chargés ************** mscorlib