Solved

Exe that accepts parameter

Posted on 2002-05-14
3
276 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
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 50

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

770 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