I am wondering if anyone knows how to make it so you can send switches to your program and interpret them in your code. For example test.exe /1 and make it in the code of the program to display a message box saying you have entered 1.
Printable View
I am wondering if anyone knows how to make it so you can send switches to your program and interpret them in your code. For example test.exe /1 and make it in the code of the program to display a message box saying you have entered 1.
The Command$ variable holds the switches.
in your form_load event, put:
Code:call msgbox("You entered: " & command$)