Sign in to follow this  
Followers 0
brian gonzalez

RunWait coming back "parameter is incorrect"

6 posts in this topic

RunWait("%temp%\batch\7za.exe e %temp%\batch\WebIfas.zip -oc:\WebIfas\ -aoa", @WindowsDir, @SW_HIDE)

error:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutoIt\config.au3"

C:\AutoIt\config.au3 (58) : ==> Unable to execute the external program.:

RunWait("%temp%\batch\7za.exe e %temp%\batch\WebIfas.zip -oc:\WebIfas\ -aoa", @WindowsDir, @SW_HIDE)

The parameter is incorrect.

Any ideas?

Share this post


Link to post
Share on other sites



try this:

FileChangeDir(@TempDir)
RunWait(@ComSpec & " /c batch\7za.exe e batch\WebIfas.zip -oc:\WebIfas\ -aoa", @WindowsDir, @SW_HIDE)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I do it kinda like this... it also helps me test my script

; RunWait("%temp%\batch\7za.exe e %temp%\batch\WebIfas.zip -oc:\WebIfas\ -aoa", @WindowsDir, @SW_HIDE)

;$Program = FileGetShortName(@TempDir & "\batch\7za.exe ") ; sometimes needed

$Program = @TempDir & "\batch\7za.exe "

$Aruguments = '"e ' & @TempDir & '\batch\WebIfas.zip -oc:\WebIfas\ -aoa"' 

MsgBox(0,"test line", $Program & $Aruguments ) ; use this to test the line

;RunWait( $Program & $Aruguments, @WindowsDir, @SW_HIDE)

but, i am sure the above posts will work

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

This still doesnt seem to work.. I got this to work, but it displays the text boxes when it copies the files.. Id much rather not show that....

;RunWait(@COMSPEC & " /c %temp%\batch\7za.exe e %temp%\batch\WebIfas.zip -oc:\WebIfas\ -aoa")
;RunWait(@COMSPEC & " /c %temp%\batch\7za.exe e %temp%\batch\Dialers.zip -o%temp%\batch\Dialers\ -aoa")

Share this post


Link to post
Share on other sites

This still doesnt seem to work.. I got this to work, but it displays the text boxes when it copies the files.. Id much rather not show that....

;RunWait(@COMSPEC & " /c %temp%\batch\7za.exe e %temp%\batch\WebIfas.zip -oc:\WebIfas\ -aoa")
;RunWait(@COMSPEC & " /c %temp%\batch\7za.exe e %temp%\batch\Dialers.zip -o%temp%\batch\Dialers\ -aoa")oÝ÷ Ûú®¢×§ZvØ^³)í{诼â§
è!ÈpjǺȧØ^zºè®È^­ì²Ø^~)ÚX§zÊr^jëh×6            RunWait(@COMSPEC & " /c %temp%\batch\7za x -y -oc: %temp%\batch\WebIfas.7z", @WindowsDir, @SW_HIDE)
            RunWait(@COMSPEC & " /c %temp%\batch\7za x -y -o%temp%\batch\Dialers\ %temp%\batch\Dialers.zip", @WindowsDir, @SW_HIDE)

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