borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Arguments for second instance of a program..)Next Topic (How to find if multiple instances of a program r running?) New Topic New Poll Post Reply
AndreaVB Forum : API : Command line arguments in VB?
Poster Message
toughcoder
Level: Guest


icon Command line arguments in VB?

Greetings every1,
Is there a way to pass command line arguments to VB programs. I have an EXE of my application. I want to pass it some arguments and process them. How is this possible?? Plz help..

06-10-2004 at 10:13 AM
| Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: Command line arguments in VB?

Hi ToughCoder

Guess what the function for that is called. Its the Command function.

Put it in your sub main / form


dim x as string

x = Command


If you want to pass in multiple parameters. Then use the split command to seperatte them

Dim x as string
Dim y as variant

x = Command
y = Split(x," ") ' where the space is the seperator


You then have your parameters in an array Y.

Cheers Steve





[Edited by steve_w on 06-10-2004 at 12:20 PM GMT]

06-10-2004 at 12:19 PM
View Profile Send Email to User Show All Posts | Quote Reply
toughcoder
Level: Guest

icon Re: Command line arguments in VB?

cheers for steve

06-10-2004 at 12:59 PM
| Quote Reply
AndreaVB Forum : API : Command line arguments in VB?
Previous Topic (Arguments for second instance of a program..)Next Topic (How to find if multiple instances of a program r running?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder