Solved

Passing Parameters to EXEs

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DO Loop not working 4 72
VBA/SQL - Connect to SQL server and pull data 4 88
Using "ScreenUpdating" 6 55
VB6 - Compare and highlight cell not the same 3 42
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now