View Full Version : VB: Receiving a parameter to an app
scroots
09-12-2004, 04:12 PM
How can i recieve a paramter into VB, e.g. from a command prompt i type
run myapp.exe <parameter>
How can i get the paramter that is passed to the application?
scroots
shmoove
09-12-2004, 04:50 PM
Just a short google away. (http://www.vb-helper.com/howto_list_command_line_arguments.html)
shmoove
scroots
09-12-2004, 05:06 PM
i think that would work, but would it work from a command prompt?
I will try it at college on monday, as they have VB, and i don't.
scroots
oracleguy
09-12-2004, 11:07 PM
Yes it will, the Command variable is filled properly if you execute the program from the command line, I just tested it.
scroots
09-13-2004, 12:25 AM
thanks for testing, i thought i best make use of the college resources in the last year, and build as many useful reusable apps i can think of.
scroots
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.