VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Multiple Command Line Arguments (switches) Example

Andrew Mothersele  (1 Submission)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This example shows how to implement multiple command line arguments or switches. The arguments passed to the application are shown in a listbox on the screen. Help is provided on how to run the program with arguments in VB. Use arguments ion the form "-h -c-t" (without the quotes)

Assumes
Running this app, without parameters will not crash it, but does make it very dull !!

Side Effects
This will not work for people with VB5 or lower as it makes use of the split() function, introduced in VB6. There are alternatives though...

Rate Multiple Command Line Arguments (switches) Example (3(3 Vote))
Multiple Command Line Arguments (switches) Example.bas

Multiple Command Line Arguments (switches) Example Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters