I've also a alternative solution:
[System.Runtime.InteropServices.DllImport("shell32.dll")]
public static extern bool ShellExecute(IntPtr hwnd, string operation, string file, string param,int showCmd);
void ExecuteBin()
{
ShellExecute(IntPtr.Zero,null,"cmd","/c BinFile.bin",0);
}
What I do: I invoke the
ShellExecute
method and I run
cmd /c BinFile.bin
. The parameter
showCmd
is set to 0, what means the cmd is not showing.