Page 1 of 1

sortbylist - folders on top? [Solved]

Posted: 24 Mar 2022 03:30
by xy123
This works, Lang folder is on top:

Code: Select all

if (<newpath> Like "C:\Program Files*") {
  sortbylist "*\Lang|Readme*.txt|License*.txt|*.exe", "|";
}
But this doesn't work:

Code: Select all

if (<newpath> Like "C:\Program Files*") {
  sortbylist "*\*|Readme*.txt|License*.txt|*.exe", "|";
}
Anyone know how to make all folders on top?

Re: sortbylist - folders on top?

Posted: 24 Mar 2022 06:34
by highend
By just getting the folders first?

Code: Select all

    if (<newpath> Like "C:\Program Files*") {
        sortbylist listfolder(<newpath>, , 2+4) . "|Readme*.txt|License*.txt|*.exe", "|";
    }

Re: sortbylist - folders on top?

Posted: 24 Mar 2022 10:39
by xy123
It works , thank you so much. :D