Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:04 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC