Sign in to follow this  
Followers 0
Andre Celie

Creating run commands From inputs

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Well finally I got it working, and my small tool does what it need to be done,

Packing files, Par2 file creation, or just All In One.

Share this post


Link to post
Share on other sites

There is some commando , called : Run and _rundos


-jaenster

Share this post


Link to post
Share on other sites

The problem is solved, it is possible to just use RUN en RUNWAIT, but you need the right structure, and there I went wrong.

Share this post


Link to post
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
Sign in to follow this  
Followers 0