There is 2 ways that I can run exe file: with double click or via command line. I want to do different function from each way..
Is it possible?
Thanks!
There is 2 ways that I can run exe file: with double click or via command line. I want to do different function from each way..
Is it possible?
Thanks!
You could also start via a Process, Schedule, register an extension, Autostart any many more. You need to tell us what you want to achieve for a satisfying answer. Following Answer is for switch a command-line and a gui mode.
If you have the Install of you Program in you hands, you can simply use "Command" to read the commandline arguments and use that for a command line mode and a gui mode. Make a switch like "-gui" and simply write
If Command = "-gui" Then
frmMain.Show
End If