Solved

Exe that accepts parameter

Posted on 2002-05-14
3
257 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
Comment Utility
the command() function will contain all parameters supplied to the app.

to test this functionality use this code

msgbox command()
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

763 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

14 Experts available now in Live!

Get 1:1 Help Now