Solved

DDE

Posted on 2001-06-18
4
208 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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 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…

760 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

23 Experts available now in Live!

Get 1:1 Help Now