Command Line Arguments 
Author Message
 Command Line Arguments

Hi,

I was wondering if it's possible to have my program (written in VB) to
accept command line arguments?  I could've sworn I've done it before.
If so, how can I access those values?  The help files are useless.  I'm
using VB5 by the way.

TIA,
Bich (bic)



Sun, 18 Nov 2001 03:00:00 GMT  
 Command Line Arguments
See Command$ in the help file.

Steve

Quote:

> Hi,

> I was wondering if it's possible to have my program (written in VB) to
> accept command line arguments?  I could've sworn I've done it before.
> If so, how can I access those values?  The help files are useless.  I'm
> using VB5 by the way.

> TIA,
> Bich (bic)



Sun, 18 Nov 2001 03:00:00 GMT  
 Command Line Arguments

Quote:
>I was wondering if it's possible to have my program (written in VB) to
>accept command line arguments?  I could've sworn I've done it before.
>If so, how can I access those values?  The help files are useless.  I'm
>using VB5 by the way.

Sub Main()

        strArg = command$

End Sub

strArg will contain the command line arguements as one string. You
have to do your own parseing.

-dave-



Sun, 18 Nov 2001 03:00:00 GMT  
 Command Line Arguments
Thanks for the replies!!!


Sun, 18 Nov 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Command-Line arguments using Command()

2. "/decompile" command line argument

3. command line arguments for project files

4. Command Line arguments for Project

5. Project_Open and command Line arguments in MSP2k

6. Command Line Arguments

7. command line arguments

8. command line arguments

9. Command line argument

10. How to get Command Line argument?

11. VB Console App Command Line Arguments

12. Command Line arguments and Scheduling

 

 
Powered by phpBB® Forum Software