Get the path to launch the executable of the application

xiaoxiao2021-03-06  41

Application.Startuppath: Gets the path to activate the executable of the application, does not include the name of the executable. Application.executablePath: Includes the name of the executable. String ExePath = Application.executablePath can use WaitForexit as follows:

System.diagnostics.Process T = new system.diagnostics.process (); t.startinfo.filename = filepath1 @ "/ 1.exe"; t.start (); t.waitforexit ();

转载请注明原文地址:https://www.9cbs.com/read-73735.html

New Post(0)