Run time Parameters


I want to pass a run time parameter with my executable file created in VB 6.0.
I don't know how it is possible.
Actually i have developed a Scoket programm where a server will listen the client  requests. For client side i want to create a application which will run by the client and i also want to pass some request with that application to server, with which server will respond accroding to clients request.

I want to use this client exe file just like 'pkunzip filename.zip' works with zip filename as runtime parmeter

Thanks
neeraj
LVL 22
neeraj523Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KurvyCommented:
This may help

Use the Command function to trap a command line function in the sub main

ie strCommand = command()

which would give

myapp.exe /somecommand

and strcommand would have value of somecommand

Kurvy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IBRownCommented:
That seems correct - except that you would not have to use the / symbol. In the example given strCommand would hold /somecommand.
0
IBRownCommented:
That seems correct - except that you would not have to use the / symbol. In the example given strCommand would hold /somecommand.
0
deightonprogCommented:
yourapp.exe your command parameters

then command$ holds "your command parameters"
0
neeraj523Author Commented:
Thanks Kurvy!

thanks for a very quick solution to my problem. i never expect that much of easy solution for it.

once again thanks for help

neeraj
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.