Sorting options available for this?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Sorting options available for this?

Post by tiago »

I have this little script that shows up the "recents" folder.

Code: Select all

   $file = inputselect("Select a Recent File to be Opened", formatlist(listfolder(%user%\recent), s, "|"), , 1, , 800, 400, "Recents");
   $dot = substr("$file", -8, 1);
   IF ($dot == ".") { open $file; }

//try to test SIZE either - IF == 0, OPEN
   ELSEIF ($dot != ".") { #340; goto $file; #1046; //340 new tab, 1046 go to focused .lnk target file
                          $cnt = getinfo("CountSelected");
                          IF ($cnt == 1) { open <curitem>; #351; }  //351 - close current tab
                          ELSEIF ($cnt != 1) {   }
                        }
   status "ok!";
How can I have this to display entries sorted by date (asc/desc) and by "semi-extension" (asc/desc, being "file name.EXT.lnk" the default naming on that folder; being "lnk" the actual extension won't affect nothing if I'm trying to group linked files as per their original extensions)?
Power-hungry user!!!

Post Reply