Tip: Pops a list of all folders below current folder

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Tip: Pops a list of all folders below current folder

Post by TheQwerty »

History wrote:

Code: Select all

v16.60.0207 - 2016-04-21 19:09
. . .
    > Tip: This pops a list of all folders (recursively, without files) below 
      the current folder:
        text runret("cmd /c dir /s /b /o:n /ad");
Why outsource this to cmd and dir?

Code: Select all

InputSelect(<curpath>, folderreport('dirs', 'r',,'r'), <crlf>);
InputSelect over Text for the icons and filter.

admin
Site Admin
Posts: 66677
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tip: Pops a list of all folders below current folder

Post by admin »

Well, it just shows how DOS-o-philes can use XY as a comfy GUI. (I saw this in another forum.)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Tip: Pops a list of all folders below current folder

Post by TheQwerty »

Fair enough!

Seemed like an odd tip out of context. ;)

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Tip: Pops a list of all folders below current folder

Post by klownboy »

Running in the background must help. In some quick tests on large drives/folders, its seems like

Code: Select all

InputSelect(<curpath>,runret("cmd /c dir /s /b /o:n /ad"),<crlf>);
is quite a bit faster than ...

Code: Select all

InputSelect(<curpath>, folderreport('dirs', 'r',,'r'), <crlf>);

Post Reply