====>>>>> I've moved to http://shallowhacker.blogspot.com

Wednesday, September 20

Clear Windows Media Player MRU from command line

I'm gonna put my techie posts here from now on. Well, at least anything that contains code...

I was looking for a util that I didn't have to install (as usual cos I don't like installing, and by the way I mean a tool I can run straight form a single executable file). Anyway, this tool would delete my Windows Media Player MRU (Most Recently Used) items, i.e. the list of files you last opened.

There must be a tool that does this, cos when I finally figured out how to do it, it was a piece of piss as they say.

Just run the command string below from a CMD window (get a CMD window by going to Start|Run, then enter cmd and press OK)

reg delete "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f

This just uses Windows XP's built-in REG command. Wonderful. Here's the link to the Microsoft page with the command's syntax: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/reg.mspx?mfr=true


Hope somebody reads this some time and finds it useful!
ps. I can't use regedit, that's why I couldn't go into the registry and do it manually.

/Josh

2 comments:

Paulo Teixeira said...

Hey, that's a cool tip! And it would be better if we could create a batch file or script to run it from a single desktop shortcut.

Andrew M.P. Weir said...

Copy the text line, open notepad click on paste, then save as MRU.bat save it to youe desktop.

You can call it what you want MRU is just MostRecentlyUsed.

gigajosh.blogspot.com has moved to http://shallowhacker.blogspot.com

Hi, I recently moved to http://hallowhacker.blogspot.com so please come and find me there if you want to see my latest posts :-)

HTC TYTN II internet price graph

HTC TYTN II internet price graph

tracker

eXTReMe Tracker