Untitled


SUBMITTED BY: Guest

DATE: Nov. 25, 2014, 5:29 p.m.

FORMAT: Text only

SIZE: 294 Bytes

HITS: 449283

  1. from winreg import *
  2. import os
  3. registry = ConnectRegistry(None,HKEY_CURRENT_USER)
  4. key = OpenKey(registry, r"Software\Microsoft\Internet Explorer\Desktop\General")
  5. value = QueryValueEx(key, "WallpaperSource")
  6. os.remove(value[0])
  7. print("Deleted " + value[0])

comments powered by Disqus