GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  Visual Basic

 Print  |  
Question:  Command Line Application

Answer: 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?


November 11, 2008 07:28:15 #2
 Parmanand Singh   Member Since: November 2008    Total Comments: 2 

RE: Command Line Application
 

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.

     

 

Back To Question