Multi-Source Docs Launcher

Discuss and share scripts and script files...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Multi-Source Docs Launcher

Post by SkyFrontier »

Code: Select all

   $paths = "D:\cds\Docs|<xyscripts>\FavScripts\|<xyscripts>\|C:\picks\documents";

   $lst = "";

   foreach($tk, $paths, "|") {
 
   $tst = exists($tk);
   if($tst == 2) {   }
   else { continue; }
   $lst = $lst . listfolder($tk, , 1, "<crlf>") . <crlf>;

                             }

   if ($lst == "") { end 1, "No valid paths found!<crlf>Script will shut."; }
   else {   }
   $doc = inputselect("Please choose:", $lst, "<crlf>", , , 1100, 900, "Select and Load Documents");

   if ($doc == "") { end 1, "No document selected!<crlf>Script will shut."; }
   else {   }


   openwith notepad, , "$doc";
I'm trying to achieve something like the '4' (noPaths) parameter listfolder() has, ie, ellipse each listed file to its base name.
For single sources (a single source folder) it's doable, but slow on heavily crowded folders.
Live filtering is my key to stick with inputselect().
Any hints, guys?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply