Discussion Locked

Pass a cmd line argument to a VB6 app

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to be able to pass an argument to an application I developed in VB6. Can anyone give me some guidance?

What the app is, is a console that runs some database operations. Right now, you open it up, make your selections, and run it. I wantto be able to pass a parameter to it on a command line so it will run a default set of parameters.

Thanx

3 replies

by scott.cargill

Pass the parameter to the VB app on the command line, or in the shortcut to the EXE file. In the VB program, look at COMMAND$ to see if anything was passed in and act on it accordingly.

by edwardhammerbeck

Thanks. Actually I found this same thing on MSDN about 12 seconds after I posted here. Oh well, my impatience is your gain! Have a great day.

This discussion is closed to new replies.