Solved

Passing Parameters to EXEs

Posted on 2001-06-30
4
580 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel - Save a copy of work book 13 96
MS Date Picker 64 bit 32 bit issue 12 73
VBA: copy range dynamically based on config sheet v3 6 54
Userform to show a range in excel. 3 34
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

752 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