deleting temp files

J

Jeff

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
 
J

John McGaw

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
Eraser can do that. It allows you to define what they call "tasks" and
these can include a list of folders, files, recycler, and empty space on
drives. Even entire drives if you wanted to I guess. When the task is run
all of the erasures are queued and run and a report is generated to show
you what happened.
 
K

kolnikoff

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

Does CCleaner work with win7?

--

Cheers

Kol
'''
<<who doesn't surf as such,>>
<<but plays in the shallows>>
 
B

Bruce Hagen

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

CCleaner:
http://www.ccleaner.com/

It does work with Win7.
 
J

Jeff

Eraser can do that. It allows you to define what they call "tasks" and
these can include a list of folders, files, recycler, and empty space on
drives. Even entire drives if you wanted to I guess. When the task is
run all of the erasures are queued and run and a report is generated to
show you what happened.
I installed eraser but it comes with no created tasks. So I have to
create the one that will delete these files which is why I asked for
what I should enter there.

Also should I give eraser any special privileges? When I asked it to
wipe the Recycle bin (from the right click option it installed) I got a
popup that said "completed with errors" which got me concerned because
it did not show what error.
 
J

John McGaw

I installed eraser but it comes with no created tasks. So I have to
create the one that will delete these files which is why I asked for
what I should enter there.

Also should I give eraser any special privileges? When I asked it to
wipe the Recycle bin (from the right click option it installed) I got a
popup that said "completed with errors" which got me concerned because
it did not show what error.
Well, you said what you wanted to delete so I assumed that was what you
would create a task to do. Most of the time it is pretty easy to find out
where the files are stored but it might take a bit of detective work.
Google is a great help in this. As for permissions and errors, if you have
the permission to create the file you will generally have permission to
delete it. Not always, but most of the time. Any errors are saved in a log
which you can access by right-clicking on the task and requesting it. The
recycle bin has some system files which are not deletable. They are also
not visible if you open the bin.
 
B

Bruce Hagen

Emrys Davies said:
Would you explain the merits of using such at tool, if at all?

One click completes many tasks?

Empty Recycle Bin
Clear Index.dat files
Clear Windows Log Files
Clear Temporary Files
Clear Temporary Internet Files
Delete Cookies /except/ the ones you want to keep.

Many more options.

It does have a Registry Cleaning option that I do not need, nor use.
There. I said the magic registry cleaner words. It's on you when this
thread turns into ten days of bickering.
 
B

Bruce Hagen

I have ccleaner installed in W 7 but am afraid to use it without
learning more about how to do this.

Just select the options you are sure of for now. (The ones you mentioned).
Uncheck anything you are not sure of.
 
P

PeeCee

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.
 
J

Jeff

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.
Thank you all for all the help.
Jeff
 
A

Al Smith

kolnikoff said:
Does CCleaner work with win7?

I just downloaded the latest version. It's said to work with
Windows 7, both x86 and x64 versions. I haven't yet tried it out,
though.

-Al-
 
T

Thip

Al Smith said:
kolnikoff wrote:
I just downloaded the latest version. It's said to work with Windows 7,
both x86 and x64 versions. I haven't yet tried it out, though.

-Al-
Works fine here, x64.
 
K

Ken Blake, MVP

I just downloaded the latest version. It's said to work with
Windows 7, both x86 and x64 versions. I haven't yet tried it out,
though.

It does work, both with the 32-bit and 64-bit versions of Windows 7.
And it's a good program that I recommend. However it has one function
that I caution you *against* using--its registry cleaning.

Although its registry cleaner is safer than most, registry cleaning
programs are *all* snake oil. Cleaning of the registry isn't needed
and is dangerous. Leave the registry alone and don't use any registry
cleaner. Despite what many people think, and what vendors of registry
cleaning software try to convince you of, having unused registry
entries doesn't really hurt you.

The risk of a serious problem caused by a registry cleaner erroneously
removing an entry you need is far greater than any potential benefit
it may have.

Read http://www.edbott.com/weblog/archives/000643.html
 
T

Thip

Ken Blake said:
It does work, both with the 32-bit and 64-bit versions of Windows 7.
And it's a good program that I recommend. However it has one function
that I caution you *against* using--its registry cleaning.
Last year (when running XP) I would have disagreed with you, but I am living
witness to the fact that tampering with or cleaning the registry in W7 is
downright stupid. I totally hosed my system (even after restoring a
registry backup) and learned that lesson the hard way.
 
K

Ken Blake, MVP

Last year (when running XP) I would have disagreed with you, but I am living
witness to the fact that tampering with or cleaning the registry in W7 is
downright stupid. I totally hosed my system (even after restoring a
registry backup) and learned that lesson the hard way.


Sorry about your problem, but glad that you now agree.

The reason many people disagree is that they have used a registry
cleaner (in some cases many times) without a problem. And that's no
surprise; I certainly don't claim that it causes a problem every time
it's used. The reason not to use it is that there's a *risk* of a
problem, and that there's no advantage to taking that risk.
 
O

Ophelia

Ken Blake said:
It does work, both with the 32-bit and 64-bit versions of Windows 7.
And it's a good program that I recommend. However it has one function
that I caution you *against* using--its registry cleaning.

Although its registry cleaner is safer than most, registry cleaning
programs are *all* snake oil. Cleaning of the registry isn't needed
and is dangerous. Leave the registry alone and don't use any registry
cleaner. Despite what many people think, and what vendors of registry
cleaning software try to convince you of, having unused registry
entries doesn't really hurt you.

The risk of a serious problem caused by a registry cleaner erroneously
removing an entry you need is far greater than any potential benefit
it may have.

Read http://www.edbott.com/weblog/archives/000643.html
Hi Ken:)

I have been using CCleaner for a long time and the registry cleaner too.
To be fair, one does have the option to save the registry before running the
cleaner and I always save to desktop as per the option offered. Most times
when I run CC and then the registry cleaner, it will tell me that there are
no problems. I have never had a problem with it and of course I can't
comment on other makes, but I have taken note of your advice.
 
O

Ophelia

Thip said:
Last year (when running XP) I would have disagreed with you, but I am
living witness to the fact that tampering with or cleaning the registry in
W7 is downright stupid. I totally hosed my system (even after restoring a
registry backup) and learned that lesson the hard way.
Noted! Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top