I have one exe which will invoke four instances of other exe.So the Main
method of second exe has following code.But there are situations like two invokes of (args[1]=="Test")
will happen.I want to block second invoke ie, want to execute Both methods(firstmethod(),secondmethod())
one time only.How to do that
these all athe four invokes
args[0] =="leaf" args[1] =="Test"
args[0] =="seat" args[1] =="Test"
args[0] =="kite" args[1] =="leveller"
args[0] =="micky" args[1] =="sasi"
and this is the code in second exe Main
method
if (args[1]=="Test")
{
firstmethod();
secondmethod();
}