|
-
Jun 26th, 2005, 04:29 AM
#1
Thread Starter
Hyperactive Member
Launching a VB app with command line options
hi, i just found out how to do this my self and thought i should share it with the internet. I was reading a document about making screen savers with vb and found out how to use command line options.
VB Code:
msgbox "You used command " & Command$
so when you open the app and call the function then a message box will say "You used command " if you just opened the app or if you opened it with command /Blah then it will say "You used command /Blah"
If there is only one perfect person in the universe, does that make them imperfect?
-
Jun 26th, 2005, 10:57 PM
#2
Hyperactive Member
Re: Launching a VB app with command line options
Wow, that's pretty neat. So what does it do for multiple commands? like App.exe /blah /hello /kittenfood ???
 Base 2
Fcnncu"Nqxgu"Lguug##
-
Jun 27th, 2005, 06:57 AM
#3
Thread Starter
Hyperactive Member
Re: Launching a VB app with command line options
I have no idea. I only found it the other day. I'm still playing around with the code. I don't know how to pass values through it like "/word1 blah".
If there is only one perfect person in the universe, does that make them imperfect?
-
Jun 27th, 2005, 09:43 AM
#4
-
Jun 27th, 2005, 01:07 PM
#5
Thread Starter
Hyperactive Member
Re: Launching a VB app with command line options
you could make it so it finds the text between "/command " and " /" so it gets the variable and does something.
If there is only one perfect person in the universe, does that make them imperfect?
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
|