Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

DDE

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
Barraza
Asked:
Barraza
  • 3
1 Solution
 
gbarenCommented:
Sub Main()
dim sCommandLine as string

   sCommandLine = Command$

End Sub
0
 
BarrazaAuthor Commented:
Thanks a billion!  Actually, thanks 200 points!
:)
Armando
0
 
gbarenCommented:
The Command built-in function returns the argument portion of the command line. In your example above, it will return "someParameter".

 
0
 
gbarenCommented:
You're quite welcome :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now