Page 2 of 2
Re: Create alphabetical list of multiple folders and subfolders on separate drives
Posted: 05 Apr 2026 01:52
by highend
Use this top block:
Code: Select all
$locs = "Q:\Movies|R:\Movies|Y:\Movies";
$dirs = quicksearch(">[^\subs] /d", $locs);
$dirs = formatlist(regexreplace($dirs, "^.:.+?\\"), "s", <crlf>);
$dirs = regexreplace($dirs, "^.+\\", <space 2>);
Re: Create alphabetical list of multiple folders and subfolders on separate drives
Posted: 05 Apr 2026 03:23
by kiwichick
highend wrote: ↑05 Apr 2026 01:52
Use this top block:
Code: Select all
$locs = "Q:\Movies|R:\Movies|Y:\Movies";
$dirs = quicksearch(">[^\subs] /d", $locs);
$dirs = formatlist(regexreplace($dirs, "^.:.+?\\"), "s", <crlf>);
$dirs = regexreplace($dirs, "^.+\\", <space 2>);
WOW!!! That is fan-freaking-tastic. Excatly what I was after. Thank you so very much

Re: Create alphabetical list of multiple folders and subfolders on separate drives
Posted: 05 Apr 2026 15:15
by Native2904
I tried the script as well and have a question.
If multiple folders from the same path are to be processed, do you always have to specify the absolute path for each folder?
Code: Select all
$locs = "Z:\Filme|Z:\Bruce Lee Collection|Z:\Bud Spencer_Terence Hill|Z:\Serien";
Re: Create alphabetical list of multiple folders and subfolders on separate drives
Posted: 05 Apr 2026 22:53
by highend
Yes, why?
Re: Create alphabetical list of multiple folders and subfolders on separate drives
Posted: 06 Apr 2026 08:58
by Native2904
I was just wondering whether, once you specify the directory to look in, you can then use only relative paths—and if so, what separator should be used.
I just wanted to understand this for myself.
Thanks.