What would be a single command I could put in a batch file that would
delete (or wipe)
a. all temporary files
b. "temp internet files" in both IE and Firefox
c. "downloaded internet components"
d) all cookies
Thank you
Jeff
mmmm
Jeff
Yes there is a 'single' command you can put in a batch file to do that.
One command is "erase" followed by all the files and folders you want to
delete.
"del" works in similar ways.
C:\Users\User>erase /?
************************************************************************
Deletes one or more files.
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directory
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for archiving
I Not content indexed Files L Reparse Points
- Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
****************************************************************************
For example :
(NOTE this is an "example" DO NOT use it verbatim but mod to suit "YOUR"
circumstances)
erase "C:\documents and settings\user\local settings\temp\ *.*"
"C:\Windows\temp\*.*"
This would clean up on a Windows XP Home machine the Temp folders for
the 'User' profile and 'Windows' temp folder.
Folder/File locations in Vista, Win 7, Win 9x, Win NT will all be
different and XP could be different depending on how things are set up.
(Repeat: DO NOT use it verbatim but mod to suit "YOUR" circumstances)
Having said all that I suspect this may be to 'geeky' for you, going on
your replies to other posters.
In that case the 'Safest' way for you to go is:
1. Use the built into Windows "Disk Cleanup" Wizard
To open Disk Cleanup, click Start, point to All Programs, point to
Accessories, point to System Tools, and then click Disk Cleanup. (XP)
This page
http://vlaurie.com/computers2/Articles/disk-cleanup.htm may
help you automate it.
2. to use the built in facilities of your Browser.
IE 7 & 8 go Tools, Internet Options, and on the General tab click the
"Delete" button in the Browsing History section.
Select the file types you want to delete ...etc.
FireFox has similar buttons under the Tools menu, but they are located
in different places to IE.
Best
Paul.