Ok ive been messing with this bit of code for ages and cant see where its going wrong.
Func _Archive_1() $aRarFile = _RecFileListToArray(@ScriptDir, "*.rar|*.part*", 1, 0) ;~ _ArrayDisplay($aRarFile, ".Rar Files") If IsArray($aRarFile) Then For $i = 1 To $aRarFile[0] ;~ If $RarExist = True Then $ArchiveTest = RunWait(@ComSpec & ' /k ' & '"' & "C:\Program Files (x86)\WinRAR\WinRAR.exe" & '"' & ' x ' & $aRarFile[$i], "", @SW_SHOW) ; -y -ibck ;~ EndIf Next EndIf Sleep(200) EndFunc ;==>_Archive_1
This should unpack a rar single volume but it doesn't when the filename has a space in it i.e. "single archive.rar"
Ive tried as many combibnations as i can think of and it works everytime if you remove the space and fails when the name has a space
If i do this
It throws the Program files space error if i try and wrap the whole thing it either says archive not found or x.rar is not a valid archive etc(dunno where its getting the .rar part from)
Ive aso tried making the array to a string but it still errors
Can anyone suggest the way to solve this?