Jump to content

RunWait coming back "parameter is incorrect"


Recommended Posts

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?

Link to comment
Share on other sites

  • Developers

try this:

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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

Link to comment
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")
Link to comment
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)
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...