Solved

Exe that accepts parameter

Posted on 2002-05-14
3
290 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 51

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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 91
Exit a vb6 apps when a calling it apps closes 15 58
Passing a Text Box name to a Sub 6 102
VB 6 error 5 in windows 10 but not in XP 7 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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

749 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