Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commad line parameters to launch VB6 application

Status
Not open for further replies.

bnath

IS-IT--Management
Apr 7, 2003
16
US
I am launching a VB6.0 application from MS Access 2003 application using

Call Shell("K:\newapp.exe")

If I want to pass command-line parameter along with the application name. How can I do that?

thanks
nath
 
You should be able to place the parameters within the string.

I tried:

Shell ("Outlook.exe /select outlook:calendar")

and it works just fine.


TomCologne
 
so If I want to pass a string called "authorized" to my vb application,

then I would say

Shell("c:\newapp.exe /authorized")

is that correct?
and if I read in newapp.exe then I should be able see the string "authorized". am I correct .

thansk
nath
 
The parameter argument depends of course on the application.

If "authorized" is a valid parameter, to eg open "newapp" in a special mode and nothing else is required, than your string should work.

I'm not sure what "and if I read in newapp.exe then I should be able see the string "authorized". " means.

Why don't you simply try it out. If you do not want to do this from your database use cmd.exe and enter

c:\newapp.exe /authorized

at the prompt.

TomCologne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top