walle Posted September 20, 2007 Share Posted September 20, 2007 (edited) 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 September 20, 2007 by walle Link to comment Share on other sites More sharing options...
Developers Jos Posted September 20, 2007 Developers Share Posted September 20, 2007 $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 More sharing options...
walle Posted September 20, 2007 Author Share Posted September 20, 2007 (edited) $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 September 20, 2007 by walle Link to comment Share on other sites More sharing options...
Developers Jos Posted September 20, 2007 Developers Share Posted September 20, 2007 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 More sharing options...
walle Posted September 20, 2007 Author Share Posted September 20, 2007 forgot an &... try this version.. $get1 = Run(@ScriptDir & '\rar.exe x "' & $rIMG & '\' & $Readrss & '\' & $Rarfilename & '.rar" ' & $mapp, "", $STDOUT_CHILD, @SW_MAXIMIZE) Thanks once again! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now