Currently I am using the below code to start my application (which is working):
ProcessStartInfo myApp = new ProcessStartInfo();
myApp.FileName = "cmd.exe";
myApp.Arguments = @"/K D:\dir\file.bin additional args to raise app";
myApp.WindowStyle = ProcessWindowStyle.Hidden;
myApp.CreateNoWindow = true;
try
{
Process.Start(myApp);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
But if possible I would like to call it directly, but since it is a .bin extension not recognized to any application (like txt is to notepad for example) Process.Start won't start it unless i use the cmd to call it.
What other way do I have to start my application directly without having to summon it from cmd ?
I can also start it with begin > run and start aswell:
start D:/my/path/file.bin additional args to raise app