Solved

DDE

Posted on 2001-06-18
4
209 Views
Last Modified: 2010-05-02
I need to start a vb app from a command prompt and send a single parameter to it.
For example, the user will type:

c:\myApplication.exe someParameter

and then my program should be started and read the parameter and I will manipulate it from there.

I think that DDE will do this, but I'm not sure how.  I've spent a few hours researching and I need help from anyone who knows about this.

Armando
0
Comment
Question by:Barraza
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
gbaren earned 200 total points
ID: 6203619
Sub Main()
dim sCommandLine as string

   sCommandLine = Command$

End Sub
0
 
LVL 1

Author Comment

by:Barraza
ID: 6203634
Thanks a billion!  Actually, thanks 200 points!
:)
Armando
0
 
LVL 5

Expert Comment

by:gbaren
ID: 6203635
The Command built-in function returns the argument portion of the command line. In your example above, it will return "someParameter".

 
0
 
LVL 5

Expert Comment

by:gbaren
ID: 6203637
You're quite welcome :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

895 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

12 Experts available now in Live!

Get 1:1 Help Now