Sign in to follow this  
Followers 0
walle

Can't get it right

5 posts in this topic

#1 ·  Posted (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 by walle

Share this post


Link to post
Share on other sites



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


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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by walle

Share this post


Link to post
Share on other sites

forgot an &... try this version..

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

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

Share this post


Link to post
Share on other sites

forgot an &... try this version..

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

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