Computing.Net > Forums > Programming > Delete a folder when it has files.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Delete a folder when it has files.

Reply to Message Icon

Name: Geralds Mod
Date: December 1, 2007 at 15:55:56 Pacific
OS: win xp
CPU/Ram: centrio duo
Product: dell inspirion
Comment:

I need a batch file that deletes a folder automatically whenever something is added to it.

I want to do this because I scanned my computer and it found 17 virus's. All from my brothers temp. internet files. I need it to delete his temp internet files folder whenever he downloads something.

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: December 1, 2007 at 19:37:04 Pacific
Reply:

I think you are going about it the wrong way. You don't have to download a file to create temporary Internet files, just connecting to a web site will do it. By the time you get round to running a batch file, the damage will have been done.

Besides you wont be able to delete any temporary internet files while the session that created them is still active.

You need a decent AV application and some anti-spyware software. There are plenty of free ones available. Stop the horse from escaping in the first place instead of closing the stable door after he is gone.

Stuart


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Delete a folder when it has files.

Help on deleting files in a dir www.computing.net/answers/programming/help-on-deleting-files-in-a-dir/17097.html

finding and deleting folders in c++ www.computing.net/answers/programming/finding-and-deleting-folders-in-c/4023.html

delete a line and data truncation www.computing.net/answers/programming/delete-a-line-and-data-truncation/18576.html