Solved

Exe that accepts parameter

Posted on 2002-05-14
3
293 Views
Last Modified: 2010-05-02
I need to have a program (exe) that accepts an input parameter.  It doesn't matter if it's integer, byte, or string.  Based upon the input, it will perform different tasks.  This exe will be called by a batch file.  I don't know how I could pass parameter from the batch file to the exe.
Thanks in advance for those who will have a suggestion.
0
Comment
Question by:imby
[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
3 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 100 total points
ID: 7007956
the command() function will contain all parameters supplied to the app.

to test this functionality use this code

msgbox command()
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 7007957
Hi imby,

Try to include the CmdLine = Command() in Form_Load Event, from there you can do the process you want.

Here is an example:
Create Shortcuts for Files and Applications with Parameters:
http://www.freevbcode.com/ShowCode.Asp?ID=909

Hope this help
0
 

Author Comment

by:imby
ID: 7007986
Thanks!
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using web browser with BING 40 153
Passing a Text Box name to a Sub 6 104
VBA: copy range dynamically based on config sheet v2 3 61
VBA - If Bookmark = "XXBOOKMARKXX" then 15 67
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

710 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