Page 1 of 1

Multi-Source Docs Launcher

Posted: 19 Jun 2014 01:15
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?