# Clean up selected MRU cruft from Win32 Registry # Copyright (c) 2002, TundraWare Inc., All Rights Reserved # $Id: mruclean.py,v 1.2 2002/07/29 06:12:31 tundra Exp $ ############################################################ ### Imports ### ############################################################ from _winreg import * ############################################################ ### Constants & Literals ### ############################################################ #################### # Constants #################### FALSE = 0 == 1 # Booleans TRUE = not FALSE #################### # Literals #################### ############################################################ ### Data ### ############################################################ mrulist = \ ( \ r"Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List", \ r"Software\Microsoft\Windows\CurrentVersion\Applets\Paint\Recent File List", \ r"Software\Microsoft\Office\9.0\PowerPoint\Recent File List", \ r"Software\Microsoft\Office\9.0\Excel\Recent Files", \ r"Software\Microsoft\MediaPlayer\Player\RecentFileList", \ ) reg = ConnectRegistry(None,HKEY_CURRENT_USER) for entry in mrulist: DeleteKey(reg, entry) CreateKey(reg, entry) CloseKey(reg)