I'm new to XYplorer and really like it so far
https://resource.dopus.com/t/auto-selec ... ders/20413
I'm not experienced with scripting - can anyone describe how this script can be adapted to work in XYplorer?
Code: Select all
$list = <<<>>>
*\Directory Opus::dopus.exe
*\Outlook::Outlook.pst
C:\Passwords::File4.txt|File2.txt|another file.txt
>>>;
// "[" and "#" need to be surrounded by "[]" for a "LikeI" comparison
foreach($item, $list, <crlf>, "e") {
if (<newpath> LikeI regexreplace(gettoken($item, 1, "::", "t"), "([#\[])", "[$1]")) {
selectitems gettoken($item, 2, "::", "t");
break;
}
}
C:\Passwords::File4.txt|File2.txt|another file.txt