View Single Post
Old Jun 26th, 2005, 8:18 AM   #1
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
Wink My ex g/f has prying eyes, and likes to read my chat logs, So....

hehe, my girlfriend is obsessed, and likes to read all my msn chat logs, and it's hard to find the time to delete them without her watching.. So I thought i would let something else do my dirty work, and stop her watching me, so they all get removed in double click time!!!
Ain't sure if this would help anyone else, I think it's just me with the physco!!!
import os
path = "WHERE YOUR CHAT LOGS ARE STORED END WITH \\"
rem = []
for file in os.listdir(path):
	if file.endswith(".xml"): #My chat logs are xml files, if your's are different  
									  #change the ending ending here
		try:
			rem = []
			rem.append(path)
			rem.append(file)
			rem = "".join(rem)
			os.remove(rem)
		except:
			IOError

hope some one is in need for it as much as me!!! LOL
__________________
while me is alive:
	make(life,simple)
SaturN is offline   Reply With Quote