Auf Kommentar antworten

Clearing recent documents list from batch files?

Seriously, I get some strange referrers from Google. Who the hell gets the idea to clear that from a batch file? I mean, most programs store that kind of stuff either in the registry or in some ugly binary files. The first option is the easier one, at least on Windows 5.1 onwards, since you could use reg.exe. The other part is trickier except the application doesn't mind a missing file.

As for Word 2007, the most recently use files reside under <text>HKCU\Sof­tware\Microsof­t\Office\12.0\Wor­d\File MRU</text> so a simple <cmd>reg delete „HKCU\Software\Mi­crosoft\Office\12­.0\Word\File MRU“</cmd> will do the trick. Of course, you can still put that into a batch file.

It works, but reminds me a bit of How do I inflate a bicycle tire with a potato?.

Antworten

The content of this field is kept private and will not be shown publicly.