|
-
November 29th, 1999, 11:04 AM
#1
Command line options w/ VB program
Does anyone know how to make it so you can add command line options to a VB Program.. Like If I want a feature disabled by default but I can enable it if I Run the program with a switch or something.. Like Notepad -Y ... or someting to that effect..
Thanks
-
November 29th, 1999, 11:53 AM
#2
Re: Command line options w/ VB program
in your VB program check the Command$ variable. It is a global variable that contains the command line arguments of your program.
-
November 29th, 1999, 06:09 PM
#3
Re: Command line options w/ VB program
There's some handy code at :
http://codeguru.developer.com/vb/articles/1755.shtml that split your command line parameters (from Command$ as Lothar stated) into an array for you - you can simply drop it into your program.
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
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
|