Command Line Application

Suppose i want to run a command line application, open up another Windows program, or even bring up the default web browser or email program... how can i do this from your VB code?

Questions by nirmaLmani   answers by nirmaLmani

Showing Answers 1 - 6 of 6 Answers

It is very easy to create command line application. Eg. you want to create a program that takes your name and then says hello. eg

Run > Testapplication.Exe "ParmanandSingh"

So this "ParmanandSingh" will be stored in command variable in code.
So now you can use this variable and can use its value any where in program

Eg.

msgbox command

This will print ParmanandSingh

Second Way - (in VB6.0 editor)
go to Project > project properties > make Tab > command line argument

In command line argument you can specify any value and same can be access using command variable in VB6 code.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions