Page 1 of 1

Tip: Pops a list of all folders below current folder

Posted: 21 Apr 2016 19:20
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.

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

Posted: 21 Apr 2016 19:30
by admin
Well, it just shows how DOS-o-philes can use XY as a comfy GUI. (I saw this in another forum.)

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

Posted: 21 Apr 2016 19:44
by TheQwerty
Fair enough!

Seemed like an odd tip out of context. ;)

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

Posted: 21 Apr 2016 19:47
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>);