Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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