1.

Solve : Want to delete history using bat?

Answer»

Please help


I am trying to create the bat that will delete all the following concern folders and files.

I want to delete my history on my user profile.
And want to delete folders inside application data for LOCAL settings.
And outside local settings.
I also want to delete temporary internet files using batch


Code: [Select]del /f /q %temp%
cd..
cd application data
rd /s /q mozilla
cd..
deltree application data
cd termporary internet files
del /f /q *.*
cd..
cd history
del /f /q *.*

del /f /q userdata



Thanks and regards
vishuthat is not a good idea a lot of programs will not work if you run that. Quote from: mat123 on August 10, 2010, 08:48:24 AM

that is not a good idea a lot of programs will not work if you run that.

Why? Give details.
deltree application data
programs store info in that folder. the info is  required to run Quote from: mat123 on August 10, 2010, 11:15:10 AM
deltree application data
programs store info in that folder. the info is  required to run

Absolutely correct. Deleting that folder is a quick ROUTE to a screwed up Windows system.
the given program will not work on any Windows OS.

Deltree is not a command on Windows NT systems, and windows 9x (which has deltree) doesn't have an application data folder in the user's profile directory. Which isn't relevant anyway, because command.com by default starts in the desktop folder. (C:\Windows\Desktop). Secondly, because deltree's arguments aren't quoted, it won't delete an "Application Data" folder even if one existed, it would instead delete files named either "Application" or "data" or folders with that name. that and the cd command on 9x doesn't requires quotes to CHANGE to any path with a space in it.

That COMBINED with the fact that even if there was some screwy OS configuration whereby that would work, it still wouldn't doo the steps claimed.I am THINKING if I could add exception to delete folder that is newly created after basic folder like microsoft, sun, adobe etc. Please let me know if I can manually add exception not to delete these folder. Rest I can.

Thanks and regards
vish


Discussion

No Comment Found