rafistern
asked on
Command line parameters
How do I pass command line parameters into my VB app?
Thanks,
Rafi
Thanks,
Rafi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
If you want to pass the command line parameters to the EXE file then you can pass the parameters as...
Suppose your EXE file reside in C:\ and your EXE file name is TEST.EXE then you just have to write
C:\TEST.EXE Param1, Param2
In this case Param1 and Param2 are your parameters.
But if you want to pass the parameter while you are developing the application in the VB editor then you can mention them in the Project (Menu)... Project Properties... goto 2nd Tab and set the Command Line Parameter there.
Now if you want to read these command line parameter in the program then use Command()
If you want to pass the command line parameters to the EXE file then you can pass the parameters as...
Suppose your EXE file reside in C:\ and your EXE file name is TEST.EXE then you just have to write
C:\TEST.EXE Param1, Param2
In this case Param1 and Param2 are your parameters.
But if you want to pass the parameter while you are developing the application in the VB editor then you can mention them in the Project (Menu)... Project Properties... goto 2nd Tab and set the Command Line Parameter there.
Now if you want to read these command line parameter in the program then use Command()
ASKER
You all got the answer but angelIII was first :-)
Thanks guys!
Rafi
Thanks guys!
Rafi
...then: Split(Command$)(1)
...returns: "param"