Create a Shortcut to Delete Recent Items in Windows Vista (or XP’s) Start Menu

Posted by ADMINISTRATOR On 12 October 2009 No Commented

Have you ever tried going through all of the menus required to delete the Recent Items in the XP Start Menu? It takes forever, especially when you want to hide whatever you shouldn’t have been doing. As usual, there’s a simpler way to do it.

You can either manually open the shell folder and clear out the items, or you can use the script I’ve provided which will actually give you a shortcut that deletes the recent items with nothing more than a double-click.

Just to be very clear, this is the list of items that we’ll be clearing out:

image

Note: This will not actually delete those files, it will just delete the shortcuts to the files that are stored in the recent folder.

Where Is the Recent Folder so I Can Delete Them Manually?

Like many folders in Windows, this one is hidden away underneath your profile folder. The full path on Windows Vista would be this, substituting your username into the path:

C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Recent\

If you are using the command line, you can use the %APPDATA% environment variable to figure out the path without needing to know the username (This also works in Explorer as well)

%APPDATA%\Microsoft\Windows\Recent\

Or the easiest possible way is to just type in this shell shortcut into the address bar or start menu search box:

shell:recent

image

You can remove any items from this folder, or even delete all the items. You’ll see them disappear from the Recent menu immediately. Again, these are just shortcuts to the actual file, as you can see with the Type column above.

Clear Out the Recent Items With a Shortcut

With a little bit of Windows Script Host magic, we can make a script that deletes the items in the recent folder… it only takes 4 lines of code!

Create a new file named DeleteRecentItems.js with Notepad, and then paste in the following lines (Or just download the zipped file linked below)

var fso = WScript.CreateObject(”Scripting.FileSystemObject”);
var WSH = new ActiveXObject(”WScript.Shell”);
var folder = WSH.SpecialFolders(”Recent”);
fso.DeleteFile(folder + “\\*.*”);

Once you save the file, you should now have a new icon that can be double-clicked to clear the recent items.

image

If you want to assign a new icon or add a shortcut key, you’ll need to create a shortcut to the file. I’d recommend putting the script file into a folder somewhere, and then creating a shortcut to it in your Quick Launch or Desktop folder.

Once you have the shortcut created, you can right-click on it and choose Properties, and then click on Change Icon or add in a Shortcut key if you would like.

image

DOWNLOAD JS

Comments

comments

You May Also Like To Read:

  1. Change the Number of Recent Items Shown on the Vista Start Menu
  2. Create a Shortcut for Locking Your Computer Screen in Windows Vista
  3. Create a Shortcut or Hotkey to Clear the Clipboard in Windows
  4. Create a Shortcut or Hotkey to Switch Power Plans (Laptops)
  5. ADDING ITEMS TO SEND TO (xp, win7 and vista)
  6. Create a Keyboard Shortcut to Access Hidden Desktop Icons and Files
  7. Create Shutdown / Restart / Lock Icons in Windows 7 or Vista
  8. Hack passwords, recent items cookies and everything from your frndz PC using a USB
  9. Create a Shortcut or Hotkey for the Safely Remove Hardware Dialog
  10. Create a Custom Boot Logo for Windows Vista

Leave a Reply

 
Freelance PHP Developer
Stop SOPA