[DllImport("CoreDll.DLL")]
private static extern int CreateProcess(
String imageName,
String cmdLine,
int lpProcessAttributes,
int lpThreadAttributes,
Int32 boolInheritHandles,
Int32 dwCreationFlags,
int lpEnvironment,
int lpszCurrentDir,
int si,
int pi);
//
public static void Execute(String exeName, String cmdLine)
{
CreateProcess(exeName, cmdLine, 0, 0, 0, 0, 0, 0, 0, 0);
}
public static void Execute(String exeName)
{
//CreateProcess(exeName, "", 0, 0, 0, 0, 0, 0, 0, 0);
Execute(exeName, "");
}