|
-
Jul 23rd, 2007, 02:46 PM
#1
Thread Starter
Hyperactive Member
[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
-
Jul 23rd, 2007, 02:49 PM
#2
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:
-
Jul 23rd, 2007, 03:56 PM
#3
Thread Starter
Hyperactive Member
Re: Launching VB app with argument/switch/parameter
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|