Solved

Passing Parameters to EXEs

Posted on 2001-06-30
4
577 Views
Last Modified: 2012-05-04
Is it possible in VB 6 to pass parameters to applications /exe at run time developed in VB6.
0
Comment
Question by:ShehzadMunir
4 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 10 total points
ID: 6240839
You can call "YourApp.EXE Param1" and use the "Command" statement to retreive the passed values.
0
 
LVL 4

Expert Comment

by:amit_panjwani
ID: 6240985
Only solution related to this , I know of is passing command line parameters using dos


Such as executing exe on command prompt say

MyExe - Myswitch etc

lemme know if you want to know more

Amit

0
 
LVL 3

Expert Comment

by:andysalih
ID: 6241610
or you could user

shell "c:\command.com/c program.exe /param",vbhide

that will run an exe file with the parameters.

cheers
Andy
0
 
LVL 1

Expert Comment

by:prefix
ID: 6241643
"at run time developed in VB6. "

open the project menu then select properties item, choose the "make" table, put your arguments in the command line arguments. press ok.
That's all.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 54
Excel - Save a copy of work book 13 85
Prevent checkbox click event occur while editing it in vb6 8 45
Add and format columns in vb6 7 57
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question