Multi-Source Docs Launcher
Posted: 19 Jun 2014 01:15
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";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?