• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Launcher

Newbie Spellweaver
Joined
Mar 28, 2017
Messages
49
Reaction score
1
Good Morning .I am doing a launcher, and would like to know if it is possible to open the program in C # as it opens in cmd.in cmd we can open by commandstart maplestory.exe 127.0.0.1(IP) 8484(PORT)in C # how would you do it?

Process.Start("MapleStory.exe"........); << DONT'S WORK
 
(O_o(o_O(O_O)o_O)O_o)
Loyal Member
Joined
Apr 9, 2009
Messages
1,088
Reaction score
322
Just do like
PHP:
string path = Directory.GetCurrentDirectory();
if (!File.Exists(path + "\\MapleStory.exe"))
{
     MessageBox.Show("Unable to locate MapleStory.exe.\r\n\r\nPlease move this client into your maplestory folder.");
}
else
{
     ProcessStartInfo startInfo = new ProcessStartInfo(string.Concat(path, "\\", "MapleStory.exe"));
     startInfo.Arguments = "-GameLaunching";
     startInfo.UseShellExecute = false;
     Process.Start(startInfo);
}
 
Upvote 0
Newbie Spellweaver
Joined
Mar 28, 2017
Messages
49
Reaction score
1
Just do like
PHP:
string path = Directory.GetCurrentDirectory();
if (!File.Exists(path + "\\MapleStory.exe"))
{
     MessageBox.Show("Unable to locate MapleStory.exe.\r\n\r\nPlease move this client into your maplestory folder.");
}
else
{
     ProcessStartInfo startInfo = new ProcessStartInfo(string.Concat(path, "\\", "MapleStory.exe"));
     startInfo.Arguments = "-GameLaunching";
     startInfo.UseShellExecute = false;
     Process.Start(startInfo);
}

Where would you place the ip?
 
Upvote 0
Newbie Spellweaver
Joined
Sep 14, 2013
Messages
87
Reaction score
4
PHP:
string genArgs = "127.0.0.1 8484";                
string pathToFile = "MapleStory.exe";                
Process runProg = new Process();                
runProg.StartInfo.FileName = pathToFile;                
runProg.StartInfo.Arguments = genArgs;                
runProg.StartInfo.CreateNoWindow = true;                
runProg.Start();
 
Upvote 0
Newbie Spellweaver
Joined
Mar 28, 2017
Messages
49
Reaction score
1
PHP:
string genArgs = "127.0.0.1 8484";                
string pathToFile = "MapleStory.exe";                
Process runProg = new Process();                
runProg.StartInfo.FileName = pathToFile;                
runProg.StartInfo.Arguments = genArgs;                
runProg.StartInfo.CreateNoWindow = true;                
runProg.Start();
thanks. it worked
 
Upvote 0
Joined
Oct 16, 2004
Messages
897
Reaction score
97
Code:
        Try
                Dim proc As New Process
                proc.StartInfo.FileName = Application.StartupPath & "\MapleStory.exe"
                proc.StartInfo.Arguments = "127.0.0.1 8484"
                proc.StartInfo.UseShellExecute = False
                proc.Start()

        Catch ex As Exception
            MsgBox(ex.Message, vbCritical)

        End Try
If you wish to have an Auto Updater, I can provide you my services.
 
Upvote 0
Back
Top