[Help]special functions[Solved]
does anyone know how to do a special function?
EX:
you open up your program in safe mode through -h so a shortcut would be:
C:\BLABLABLA\program.exe -h
how do i make my program recognize the "-h"?
I simply know this:
Shell("C:\BLABLABLA\program.exe -h")
or
Shell(""C:\BLABLABLA\program.exe" " & "-h")
On the load event of the form, put the following code:
[php]For Each argument As String In Environment.GetCommandLineArgs()
Console.WriteLine(argument)
Next argument[/php]
This will display every argument passed to the application and you can decide how to handle them.
For example if the parameter is " -u" then you can use it to call an update for your application. Depends upon you.