Jump to content

Recommended Posts

Hello guys,
i created a starter, but im having a problem. My .exe has argument. For example: 

if (strstr(lpCmdLine, "--binissafe") == 0)
		return 0;

What should i write to my  starter button, so it should open properly the .exe?

I used process.start and system.diagnostics.process.start but when it asks me to run the .exe as admin or not after that nothing happens. It doesnt open the .exe.

Anyone can help me?

The code of my starter now:

        Process.Start("metin2client.exe", "--binissafe")
        Close()

 

Thanks for your time.

Link to comment
https://metin2.dev/topic/22338-argument-at-c-starter/
Share on other sites

if you want from patcher start binary (starter client), that example code:

Process startProcess = new Process();
startProcess.StartInfo.FileName = "metin2_client.exe";
startProcess.Start();

Maybe I didn’t understand you correctly.

Link to comment
https://metin2.dev/topic/22338-argument-at-c-starter/#findComment-121471
Share on other sites

  • Management
                ProcessStartInfo startInfo = new ProcessStartInfo();
                startInfo.FileName = "metin2client.exe";
                startInfo.Arguments = "--argument";
                Process.Start(startInfo);

 

raw

raw

Link to comment
https://metin2.dev/topic/22338-argument-at-c-starter/#findComment-121476
Share on other sites

4 minutes ago, Karbust said:

                ProcessStartInfo startInfo = new ProcessStartInfo();
                startInfo.FileName = "metin2client.exe";
                startInfo.Arguments = "--argument";
                Process.Start(startInfo);

 

It is saying that startInfo is not declared...

Link to comment
https://metin2.dev/topic/22338-argument-at-c-starter/#findComment-121477
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.