[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Setting Parameters

Posted on 2000-04-19
1
Medium Priority
?
133 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
[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
1 Comment
 
LVL 14

Accepted Solution

by:
wsh2 earned 140 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

649 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