Solved

Setting Parameters

Posted on 2000-04-19
1
123 Views
Last Modified: 2011-09-20
Hello all, This should be an easy one!

I want to set parameter for an EXE. The DOS command line would look like this:

a:\Testexe -Sdx a:\dump.txt c:\1.txt c:\2.txt

How do i get the parameters 'c:\1.txt' & 'c:\2.txt' to come from 2 text boxes on the form. I want the user to be able to type in a path in txtbox1 and txtbox2 and that path be placed in the parameters for Testexe.

Heres the code i currently have:

wd = Shell("a:\testexe -Sdx a:\d.txt c:\1\1.txt c:\2\1.txt", vbNormalFocus)

Can you help?
0
Comment
Question by:hirschhouse
1 Comment
 
LVL 14

Accepted Solution

by:
wsh2 earned 35 total points
ID: 2732343
dim strCommand as String

strCommand = "a:\testexe -Sdx a:\d.txt " _
   & text1.text & "1.txt " _
   & text2.text & "2.txt "
wd = Shell(strCommand, vbNormalFocus)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to debug this code 7 51
vb6 connector to SQL Server 2 32
Hide vba in gp 7 48
clicking a shape in a frame array vb6 3 7
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

759 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