Solved

Passing Parameters to EXEs

Posted on 2001-06-30
4
579 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 192
How to compare ms sql hashbytes results within vb6 5 94
how to know if my Checkbox is True in VB6.0? 9 65
Advice in Xamarin 21 109
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

685 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