Jump to content

Creating run commands From inputs


Andre Celie
 Share

Recommended Posts

Can some one help me with the following:

I need to know how to run programs when the are typed into a box

I know how to read an inputbox, but the I don't know how to combine everything together

I tried this

Runwait("C:\Progra~1\Winrar\Winrar.exe" & " a" & "v" & GUICtrlRead($RarSize)& " " & GUICtrlRead($WorkDir) & GUICtrlRead($OutDir))

I don't get an error though

How can I run this

;Settings

$App1 = "C:\Progra~1\Winrar\Winrar.exe" ; location of Winrar

$Setting1 = "-m" ; Setting for compression

$Setting2 = "w" ; Setting for work directory

C:\Progra~1\Winrar\Winrar.exe -m w etc

But it is not working

Thanx

Edited by Andre Celie
Link to comment
Share on other sites

Sorry, I can't get it to work.

$App1 = "C:\Progra~1\Winrar\Winrar.exe" ; location of Winrar

$Setting1 = "-m" ; Setting for compression

$Setting2 = "w" ; Setting for work directory

$Workdir = "C:\Test"

$OutputDir = "C:\Temp"

$File1 = "\*.*"

$File2 = "Test"

So my line should be sometinong like this I think

$App1 <space> & $Workdir & $file1 <space> & $OutputDir & $File2

Can this be done?

This is working though Runwait($App1)

Thanx

Edited by Andre Celie
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...