How can I ?
-
Hi dudes. how are you everybody ???? When you Open Start ---> run -----> and type any command like (cmd , regedit) it will execute the command. So how can i make a command line string of my own to do some operations when the user type it in run dialog of the windows operating system. ? if anybody can help me with this Miss With The Best And Die Like The Rest
-
Hi dudes. how are you everybody ???? When you Open Start ---> run -----> and type any command like (cmd , regedit) it will execute the command. So how can i make a command line string of my own to do some operations when the user type it in run dialog of the windows operating system. ? if anybody can help me with this Miss With The Best And Die Like The Rest
You need to handel
Command Line Arguments
in Your program So usepublic static void Main(string Args[])
Orstatic int Main(string[] Args)
instead of parameterslessMain
method look at Command-Line Arguments[^] you need to parse this arguments to handle more complex parameters an example for this can be found at C#/.NET Command Line Arguments Parser [^] MCAD -- modified at 20:59 Thursday 6th October, 2005 -
Hi dudes. how are you everybody ???? When you Open Start ---> run -----> and type any command like (cmd , regedit) it will execute the command. So how can i make a command line string of my own to do some operations when the user type it in run dialog of the windows operating system. ? if anybody can help me with this Miss With The Best And Die Like The Rest
Take a look at the registry key SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths