[RESOLVED] Launching VB app with argument/switch/parameter
I have a VB app named App.exe
I will use a batch file to launch it and want to use an argument. Ex.:
c:\App.exe 1
My VB app will then catch the "1" on the Form Load and act how I need it to.
How could I do this? How am I trapping the "1" (or whatever parameter passed to it) when loading the vb app?
(I'm doing this because it'll avoid me to compile the application 7-8 times every 2 days - my app is verrrry long to compile because of many very-massive "SELECT CASE" - these can't be taken out)
Thanks
Re: Launching VB app with argument/switch/parameter
You can use the Command function (which returns the text from the command line as a string), eg:
Re: Launching VB app with argument/switch/parameter