Solved

DDE

Posted on 2001-06-18
4
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 62
Advice in Xamarin 21 109
VBA to find and replace multiline text from VBA modules 8 92
Macro problems with Excel file 6 27
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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