On a script i have this scenario which im trying to solve
If IsArray($CleanUpData) Then Select Case IsArray($CleanUpData) $aRarFile = _RecFileListToArray(@ScriptDir, "*.rar|*.part*", 1, 0) ;<<<<<<<<<<< this one _ArrayDisplay($aRarFile, ".Rar Files") Case IsArray($CleanUpData) $aRarFile = _RecFileListToArray(@ScriptDir, "*.part1.rar;*.part01.rar;*.part001.rar;*.7z;*.001", 1, 0) ;<<<<<<<<<<< and this one _ArrayDisplay($aRarFile, ".Rar Files") Case Else $aZipFile = _RecFileListToArray(@ScriptDir, "*.zip", 1, 0) ; Search for .zip files _ArrayDisplay($aZipFile, ".Zip Files") EndSelect
The problem is i have no case arguments that i can use other then IsArray($CleanUpData)
and the case else must be the zip
How can i combine the 2 marked lines without causing the conflict of single rar ignoring the part and also to find the part.rar when needed?
Or a way to make it do both searches and only keep the right one?
Basically it only looks for the first file only
If this makes no sense i will try and explain again