• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

deleting temp files

  • Thread starter Jeff@couldbeinvalid.com
  • Start date
J

Jeff@couldbeinvalid.com

Flightless Bird
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

Flightless Bird
On 1/28/2010 2:11 PM, Jeff@couldbeinvalid.com wrote:
> 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

Flightless Bird
On 28/01/2010 19:11, Jeff@couldbeinvalid.com wrote:
> 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

Flightless Bird
<Jeff@couldbeinvalid.com> wrote in message
news:Njl8n.786$4N4.676@newsfe24.iad...
> 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.
--
Bruce Hagen
MS-MVP [Mail]
Imperial Beach, CA
 
J

Jeff@couldbeinvalid.com

Flightless Bird
On 1/28/2010 2:25 PM, John McGaw wrote:
> On 1/28/2010 2:11 PM, Jeff@couldbeinvalid.com wrote:
>> 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.


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

Jeff@couldbeinvalid.com

Flightless Bird
On 1/28/2010 2:46 PM, Bruce Hagen wrote:
>
> <Jeff@couldbeinvalid.com> wrote in message
> news:Njl8n.786$4N4.676@newsfe24.iad...
>> 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.


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

Emrys Davies

Flightless Bird
"Bruce Hagen" <Nospam@mymail.invalid> wrote in message
news:3Pl8n.780$5n.186@newsfe23.iad...
>
> <Jeff@couldbeinvalid.com> wrote in message
> news:Njl8n.786$4N4.676@newsfe24.iad...
> > 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.
> --
> Bruce Hagen
> MS-MVP [Mail]
> Imperial Beach, CA


Would you explain the merits of using such at tool, if at all?
 
B

bb

Flightless Bird
On 1/28/2010 2:30 PM, kolnikoff wrote:
> Does CCleaner work with win7?
>

It does.
 
J

John McGaw

Flightless Bird
On 1/28/2010 6:45 PM, Jeff@couldbeinvalid.com wrote:
> On 1/28/2010 2:25 PM, John McGaw wrote:
>> On 1/28/2010 2:11 PM, Jeff@couldbeinvalid.com wrote:
>>> 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.

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

Flightless Bird
"Emrys Davies" <me@privacy.net> wrote in message
news:7sens9Fd7hU1@mid.individual.net...
>
> "Bruce Hagen" <Nospam@mymail.invalid> wrote in message
> news:3Pl8n.780$5n.186@newsfe23.iad...
>>
>> <Jeff@couldbeinvalid.com> wrote in message
>> news:Njl8n.786$4N4.676@newsfe24.iad...
>> > 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.
>> --
>> Bruce Hagen
>> MS-MVP [Mail]
>> Imperial Beach, CA

>
> 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.
--
Bruce Hagen
MS-MVP [Mail]
Imperial Beach, CA
 
B

Bruce Hagen

Flightless Bird
<Jeff@couldbeinvalid.com> wrote in message
news:glp8n.1364$Fm7.1007@newsfe16.iad...
> On 1/28/2010 2:46 PM, Bruce Hagen wrote:
>>
>> <Jeff@couldbeinvalid.com> wrote in message
>> news:Njl8n.786$4N4.676@newsfe24.iad...
>>> 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.

>
> 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.
--
Bruce Hagen
MS-MVP [Mail]
Imperial Beach, CA
 
P

PeeCee

Flightless Bird
<Jeff@couldbeinvalid.com> wrote in message
news:Njl8n.786$4N4.676@newsfe24.iad...
> 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@couldbeinvalid.com

Flightless Bird
On 1/28/2010 10:30 PM, PeeCee wrote:
>
> <Jeff@couldbeinvalid.com> wrote in message
> news:Njl8n.786$4N4.676@newsfe24.iad...
>> 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

Flightless Bird
kolnikoff wrote:
> On 28/01/2010 19:11, Jeff@couldbeinvalid.com wrote:
>> 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?
>



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

Flightless Bird
"Al Smith" <invalid@address.com> wrote in message
news:ETx8n.63545$PH1.14706@edtnps82...
> 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

Flightless Bird
On Fri, 29 Jan 2010 09:29:08 GMT, Al Smith <invalid@address.com>
wrote:

> kolnikoff wrote:
> > On 28/01/2010 19:11, Jeff@couldbeinvalid.com wrote:
> >> 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?
> >

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



--
Ken Blake, Microsoft MVP (Windows Desktop Experience) since 2003
Please Reply to the Newsgroup
 
T

Thip

Flightless Bird
"Ken Blake, MVP" <kblake@this.is.an.invalid.domain> wrote in message
news:5ou5m5h9fiuv1g36g92qf0olck54giasvm@4ax.com...
> On Fri, 29 Jan 2010 09:29:08 GMT, Al Smith <invalid@address.com>
> wrote:
> 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

Flightless Bird
On Fri, 29 Jan 2010 10:23:01 -0500, "Thip" <me@privacy.net> wrote:


> "Ken Blake, MVP" <kblake@this.is.an.invalid.domain> wrote in message
> news:5ou5m5h9fiuv1g36g92qf0olck54giasvm@4ax.com...
> > On Fri, 29 Jan 2010 09:29:08 GMT, Al Smith <invalid@address.com>
> > wrote:
> > 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.




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.

--
Ken Blake, Microsoft MVP (Windows Desktop Experience) since 2003
Please Reply to the Newsgroup
 
O

Ophelia

Flightless Bird
"Ken Blake, MVP" <kblake@this.is.an.invalid.domain> wrote in message
news:5ou5m5h9fiuv1g36g92qf0olck54giasvm@4ax.com...
> On Fri, 29 Jan 2010 09:29:08 GMT, Al Smith <invalid@address.com>
> wrote:
>
>> kolnikoff wrote:
>> > On 28/01/2010 19:11, Jeff@couldbeinvalid.com wrote:
>> >> 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?
>> >

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


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.

--
--
https://www.shop.helpforheroes.org.uk/
 
O

Ophelia

Flightless Bird
"Thip" <me@privacy.net> wrote in message
news:7sgcqsFs83U1@mid.individual.net...
>
>
> "Ken Blake, MVP" <kblake@this.is.an.invalid.domain> wrote in message
> news:5ou5m5h9fiuv1g36g92qf0olck54giasvm@4ax.com...
>> On Fri, 29 Jan 2010 09:29:08 GMT, Al Smith <invalid@address.com>
>> wrote:
>> 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.


Noted! Thanks.

--
--
https://www.shop.helpforheroes.org.uk/
 
Top