Jump to content

Can't get it right


walle
 Share

Recommended Posts

Can figure it out, must done something wrong in the last line. It won't execute the .exe.

Here is the proper line in dos:

rar.exe x "D:\Downloads\Autoit\Autoitscript\rarfile.rar" C:\Temp

$rIMG = "D:\Downloads\AUTOIT"
$Readrss = "AUTOITSCRIPT"
$mapp = "C:\Temp\"

$FileList=_FileListToArray($rIMG & "\" & $Readrss)

If @Error=1 Then
    MsgBox (0,"","No Files\Folders Found.")
    Exit
EndIf

; $filelist[0]=the amount of files found
For $i = 0  To $FileList[10]
    ;msgbox (0, "test", $filelist[10])
Next

$Rarfilename = StringTrimRight($filelist[10], 4)
msgbox(0,"",$Rarfilename)
$get1 = Run(@ScriptDir & '\' & 'rar.exe' & ' x ' & "'" $rIMG & '\' & $Readrss & '\' & $Rarfilename & ".rar" & "'" '' $mapp,"",$STDOUT_CHILD, @SW_MAXIMIZE)
Edited by walle
Link to comment
Share on other sites

  • Developers

$get1 = Run(@ScriptDir & '\rar.exe x "' $rIMG & '\' & $Readrss & '\' & $Rarfilename & '.rar" ' & $mapp,"",$STDOUT_CHILD, @SW_MAXIMIZE)

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

$get1 = Run(@ScriptDir & '\rar.exe x "' $rIMG & '\' & $Readrss & '\' & $Rarfilename & '.rar" ' & $mapp,"",$STDOUT_CHILD, @SW_MAXIMIZE)
Still gets, Error in expression.: =/

Edit: What about the tags infront of D:, and after .rar (")

Edited by walle
Link to comment
Share on other sites

  • Developers

forgot an &... try this version..

$get1 = Run(@ScriptDir & '\rar.exe x "' & $rIMG & '\' & $Readrss & '\' & $Rarfilename & '.rar" ' & $mapp, "", $STDOUT_CHILD, @SW_MAXIMIZE)

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

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...