?
Solved

VB application with DOS extensions

Posted on 2004-11-09
4
Medium Priority
?
162 Views
Last Modified: 2010-05-02
I would like to know if it's possible to start up a VB application using a shortcut or from DOS prompt directly, and include the predefined extensions, just like those applications supports -r /s or whatever at the end.

After specifying the extensions, the VB application can start up according to the settings with for example default values etc.

Is this possible? And how can I implement it?
0
Comment
Question by:guest321
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
RogueSolutions earned 1000 total points
ID: 12532257
The Command$ "variable" contains whatever parameters the EXE is triggers with.  You can then parse this in various ways to get your app to respond to them.

0
 
LVL 5

Expert Comment

by:RogueSolutions
ID: 12532293
To answer the first part of your question.  

Yes you can add parameters to a short-cut.  Just type them on the end of the Target entry (where the name of the exe goes).

For example, put the following text into the Target of a new shortcut :-

"C:\Program Files\Office2k\Office\EXCEL.EXE" /e

will start Excel without the default empty workbook.

(This only works if the path to Office is right obviously)
0
 

Author Comment

by:guest321
ID: 12532645
Thank you very much, RogueSolutions. :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
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…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 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