Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[C#/VB] Simple instance merger class

this can easy done with process class and Environment.GetCommandLineArgs
Code
if (Args.Length < 2) {
    Process.Start(new ProcessStartInfo(Application.ExecutablePath, "1"));
} else if (Args(1) == "1") {
// New Instance
}
(Nov 18, 2015 04:17 PM)BahNahNah Wrote:  This would not work. Did you even try it?

This work. Did you even try it?
bahna open ur brain its easy to do it
also this way u not creating new files all in memory
tip use the power of the args to pass the info
to send arg back to the app u can use sendmessage api


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by lockheadApr 22, 2021 07:10 AM 0 147 Apr 22, 2021 07:10 AM
Last Post: lockhead
[.NET] by sh@rpJul 5, 2020 07:05 AM 212 22,355 Jul 5, 2020 07:05 AM
Last Post: sh@rp
[Python] by Meelo XOMay 11, 2019 05:52 AM 0 121 May 11, 2019 05:52 AM
Last Post: Meelo XO