Page 1 of 1

Win 8.1 Recent Places

Posted: 11 Mar 2014 23:11
by Stabilizer
I use Recent Places in Windows Explorer (Windows 8.1) frequently and it works well for me

Is there a way to put Recent Places in the XYP main tree?

Re: Win 8.1 Recent Places

Posted: 12 Mar 2014 00:06
by highend
Not in the main tree but as an alternative a script (e.g. executed by clicking on a udc / assigning a keyboard shortcut, etc.):

Code: Select all

    // Show popup menu for recent places
    $count = 15; // Max folders to show in the popup menu
    $recentFolder = "%APPDATA%\Microsoft\Windows\Recent";
    $linkFiles = listfolder($recentFolder, "*.lnk", 1, "<crlf>");
    $folderList = "";
    foreach($file, $linkFiles, "<crlf>") {
        $dstFolder = property("#linktarget", $file);
        if (exists($dstFolder) == 2) {
            $folderList = $folderList . getpathcomponent($file, "base") . ";$dstFolder<crlf>";
        }
    }
    $target = popupmenu($folderList, -1, -1, , $count, , "<crlf>", ";");
    goto $target;

Re: Win 8.1 Recent Places

Posted: 12 Mar 2014 15:13
by Stabilizer
I've never used a script before

Is there some information on how to get started?

Re: Win 8.1 Recent Places

Posted: 12 Mar 2014 15:38
by highend
e.g. Help file...

Advanced Topics - User-Defined Commands