Running a .exe, but the exe is a batch file..

Microsoft Visual studio 2008 professiona...
July 1, 2009 at 18:34:36
Specs: Windows Vista Server 2008 (same as Vista)
I'm trying to to open a .exe file, but it opens as a batch file and will not open with the normal command..
This is what I have...
StreamReader sw = new StreamReader("Settings.conf");
string line = sw.ReadLine();
line = sw.ReadLine();
Process.Start(@line.Split('=')[1] + "\\arcemu-logonserver.exe");

And it opens the window for half a second. Then it just closes... but it needs to stay open.. its the logon server for somthing....

Please help. Thanks.

See More: Running a .exe, but the exe is a batch file..

Report •

July 2, 2009 at 00:13:38
"but it opens as a batch file"

I don't know what that means.

If at first you don't succeed, you're about average.


Report •

July 3, 2009 at 10:08:07
Try Process.Start("cmd /k " + what you had earlier)

Report •

Related Solutions

Ask Question