Computing.Net > Forums > Programming > Running a .exe, but the exe is a batch file..

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

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

Reply to Message Icon

Name: kennyb2142
Date: July 1, 2009 at 18:34:36 Pacific
OS: Windows Vista Server 2008 (same as Vista)
Product: Microsoft Visual studio 2008 professional with msdn (full product)
Subcategory: C/C++
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 2, 2009 at 00:13:38 Pacific
Reply:

"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.

M2


0

Response Number 2
Name: klint
Date: July 3, 2009 at 10:08:07 Pacific
Reply:

Try Process.Start("cmd /k " + what you had earlier)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Running a .exe, but the exe is a batch file..

Make an exe with a batch file and.. www.computing.net/answers/programming/make-an-exe-with-a-batch-file-and/17595.html

Disable editing a batch file www.computing.net/answers/programming/disable-editing-a-batch-file/16914.html

Set file associations from a batch file??? www.computing.net/answers/programming/set-file-associations-from-a-batch-file/19592.html