PC Review


Reply
Thread Tools Rate Thread

Cookie Removal

 
 
David
Guest
Posts: n/a
 
      24th May 2009
I have XP/Pro SP2 on my workstation. My used name (David) has
administrative priviledges.

One of my backups is a data only backup onto a USB drive using a DOS
BATCH file & XCOPY

I have tried to restrict all but desireable cookies from invading my
workstation. I've changed the Internet Options (Control Panel) and
the cookie rules in the various browsers I use. Apparently I've been
successful here. However, there seems to be one place I can not stop
cookies & temp internet files from being saved on my workstation. I'm
not sure, but its possible they are arriving through the use of
various other applications that insist on using IE for internet
access.

This is where the cookies are being saved (My user name is David):

C:\Documents and Settings\David\Local Settings\Temporary Internet
Files

I have tried everything I can think of by adjusting the setup in
various appplications without success. Since I can't stop the
cookies, my thought is that I might be able to automate their
deletion. As I said, my data backup uses a DOS batch file and XCOPY.
I have thought of inserting a DOS DELETE command into that batch file
to delete the contents of the above directory. I've tried this
without success. With the appropriate delete command, the batch file
generates no error messages. However, XP/Pro apparently ignores the
delete command because the temp internet files & cookies don't get
deleted.

I can use Windows Explorer and manually delete the stuff. But, I
can't figure out how to do it automatically.

Can anyone offer any suggestions?

David
 
Reply With Quote
 
 
 
 
Twayne
Guest
Posts: n/a
 
      24th May 2009
David wrote:
> I have XP/Pro SP2 on my workstation. My used name (David) has
> administrative priviledges.
>
> One of my backups is a data only backup onto a USB drive using a DOS
> BATCH file & XCOPY
>
> I have tried to restrict all but desireable cookies from invading my
> workstation. I've changed the Internet Options (Control Panel) and
> the cookie rules in the various browsers I use. Apparently I've been
> successful here. However, there seems to be one place I can not stop
> cookies & temp internet files from being saved on my workstation. I'm
> not sure, but its possible they are arriving through the use of
> various other applications that insist on using IE for internet
> access.
>
> This is where the cookies are being saved (My user name is David):
>
> C:\Documents and Settings\David\Local Settings\Temporary Internet
> Files
>
> I have tried everything I can think of by adjusting the setup in
> various appplications without success. Since I can't stop the
> cookies, my thought is that I might be able to automate their
> deletion. As I said, my data backup uses a DOS batch file and XCOPY.
> I have thought of inserting a DOS DELETE command into that batch file
> to delete the contents of the above directory. I've tried this
> without success. With the appropriate delete command, the batch file
> generates no error messages. However, XP/Pro apparently ignores the
> delete command because the temp internet files & cookies don't get
> deleted.
>
> I can use Windows Explorer and manually delete the stuff. But, I
> can't figure out how to do it automatically.
>
> Can anyone offer any suggestions?
>
> David


You're kind of hard to follow, but

Del "C:\Documents and Settings\David\Local Settings\Temporary
Internet\*"<space>/s RET
should pretty well take care of it I'd think. Or you could just CD to
the exact folder and then issue a del * followed by a del *.* probably.
It's better to use the full path though. XP will execute it fine in a
batch file.

Twayne`


 
Reply With Quote
 
Jose
Guest
Posts: n/a
 
      24th May 2009
On May 24, 4:28*pm, David wrote:
> I have XP/Pro SP2 on my workstation. *My used name (David) has
> administrative priviledges.
>
> One of my backups is a data only backup onto a USB drive using a DOS
> BATCH file & XCOPY
>
> I have tried to restrict all but desireable cookies from invading my
> workstation. *I've changed the Internet Options (Control Panel) and
> the cookie rules in the various browsers I use. *Apparently I've been
> successful here. *However, there seems to be one place I can not stop
> cookies & temp internet files from being saved on my workstation. *I'm
> not sure, but its possible they are arriving through the use of
> various other applications that insist on using IE for internet
> access.
>
> This is where the cookies are being saved (My user name is David):
>
> C:\Documents and Settings\David\Local Settings\Temporary Internet
> Files
>
> I have tried everything I can think of by adjusting the setup in
> various appplications without success. *Since I can't stop the
> cookies, my thought is that I might be able to automate their
> deletion. *As I said, my data backup uses a DOS batch file and XCOPY.
> I have thought of inserting a DOS DELETE command into that batch file
> to delete the contents *of the above directory. *I've tried this
> without success. *With the appropriate delete command, the batch file
> generates no error messages. *However, XP/Pro apparently ignores the
> delete command because the temp internet files & cookies don't get
> deleted.
>
> I can use Windows Explorer and manually delete the stuff. *But, I
> can't figure out how to do it automatically.
>
> Can anyone offer any suggestions?
>
> David


Think like a batch file, not Windows Explorer

Get to a command prompt and first get a DIR command to work the way
you want.

Change DIR to DEL and your're all set.

Jose
 
Reply With Quote
 
Johnw
Guest
Posts: n/a
 
      25th May 2009
David has brought this to us :
> I have XP/Pro SP2 on my workstation. My used name (David) has
> administrative priviledges.
> Can anyone offer any suggestions?


Blocking Unwanted Cookies with IE 7/8
http://www.mvps.org/winhelp2002/cookies.htm


 
Reply With Quote
 
David
Guest
Posts: n/a
 
      25th May 2009
On Sun, 24 May 2009 17:06:10 -0400, "Twayne"
<(E-Mail Removed)> wrote:

>David wrote:
>> I have XP/Pro SP2 on my workstation. My used name (David) has
>> administrative priviledges.
>>
>> One of my backups is a data only backup onto a USB drive using a DOS
>> BATCH file & XCOPY
>>
>> I have tried to restrict all but desireable cookies from invading my
>> workstation. I've changed the Internet Options (Control Panel) and
>> the cookie rules in the various browsers I use. Apparently I've been
>> successful here. However, there seems to be one place I can not stop
>> cookies & temp internet files from being saved on my workstation. I'm
>> not sure, but its possible they are arriving through the use of
>> various other applications that insist on using IE for internet
>> access.
>>
>> This is where the cookies are being saved (My user name is David):
>>
>> C:\Documents and Settings\David\Local Settings\Temporary Internet
>> Files
>>
>> I have tried everything I can think of by adjusting the setup in
>> various appplications without success. Since I can't stop the
>> cookies, my thought is that I might be able to automate their
>> deletion. As I said, my data backup uses a DOS batch file and XCOPY.
>> I have thought of inserting a DOS DELETE command into that batch file
>> to delete the contents of the above directory. I've tried this
>> without success. With the appropriate delete command, the batch file
>> generates no error messages. However, XP/Pro apparently ignores the
>> delete command because the temp internet files & cookies don't get
>> deleted.
>>
>> I can use Windows Explorer and manually delete the stuff. But, I
>> can't figure out how to do it automatically.
>>
>> Can anyone offer any suggestions?
>>
>> David

>
>You're kind of hard to follow, but
>
>Del "C:\Documents and Settings\David\Local Settings\Temporary
>Internet\*"<space>/s RET
>should pretty well take care of it I'd think. Or you could just CD to
>the exact folder and then issue a del * followed by a del *.* probably.
>It's better to use the full path though. XP will execute it fine in a
>batch file.
>
>Twayne`
>


I tried as you suggested - exactly, but it did not work. It turns out
the Temporary Internet Files directory has some hidden
sub-directories. The command you suggested did clean these out.

However, using Windows Explorer, a large number of .jpg files can be
seen. These files WERE NOT removed using your command. I can get rid
of them by highlighting them within Windows Explorer & hitting DEL -
the same procedure as I use to delete any other file.

Even more interesting: I used START->RUN & opened a DOS window using
CMD. I then used CD to move to the TEMPORARY INTERNET FILES
directory. The dir command WILL NOT DISPLAY the .jpg files, but
Windows Explorer will. I suppose you must be able to see them to
delete them. Probably why the DOS batch file will not delete the
files.

Right now, probably the best question is why DIR will not display
files within the Temporary Internet Files directory?

David
 
Reply With Quote
 
Tim Meddick
Guest
Posts: n/a
 
      25th May 2009
David,
Cookies are NOT located in the 'Temporary Internet Files' folder,
although they do 'appear' to be but what you are seeing is an indexed list
made up of files that are in other locations.

The Temporary Internet Files are actually located in alphanumerically named
sub-directories within the folder:
"%USERPROFILE%\Local Settings\Temporary Internet Files\Content.IE5"

The Cookies are actually stored in folder:
"%USERPROFILE%\Cookies"

....so your batch file should point to this folder. e.g.


@echo off
del "%USERPROFILE%\Cookies\*.txt"


However, though the cookies are actually gone they may well still show
up in the 'Temporary Internet Files' folder as I said - it's only an indexed
list.

But you can double check what I've said. If you delete the cookies out
of the "%USERPROFILE%\Cookies" folder and then try to open one in the Temp
Inet Files folder it won't open.


==


Cheers, Tim Meddick, Peckham, London. :-)


<David> wrote in message news:(E-Mail Removed)...
>I have XP/Pro SP2 on my workstation. My used name (David) has
> administrative priviledges.
>
> One of my backups is a data only backup onto a USB drive using a DOS
> BATCH file & XCOPY
>
> I have tried to restrict all but desireable cookies from invading my
> workstation. I've changed the Internet Options (Control Panel) and
> the cookie rules in the various browsers I use. Apparently I've been
> successful here. However, there seems to be one place I can not stop
> cookies & temp internet files from being saved on my workstation. I'm
> not sure, but its possible they are arriving through the use of
> various other applications that insist on using IE for internet
> access.
>
> This is where the cookies are being saved (My user name is David):
>
> C:\Documents and Settings\David\Local Settings\Temporary Internet
> Files
>
> I have tried everything I can think of by adjusting the setup in
> various appplications without success. Since I can't stop the
> cookies, my thought is that I might be able to automate their
> deletion. As I said, my data backup uses a DOS batch file and XCOPY.
> I have thought of inserting a DOS DELETE command into that batch file
> to delete the contents of the above directory. I've tried this
> without success. With the appropriate delete command, the batch file
> generates no error messages. However, XP/Pro apparently ignores the
> delete command because the temp internet files & cookies don't get
> deleted.
>
> I can use Windows Explorer and manually delete the stuff. But, I
> can't figure out how to do it automatically.
>
> Can anyone offer any suggestions?
>
> David



 
Reply With Quote
 
Al Falfa
Guest
Posts: n/a
 
      26th May 2009
David wrote:
> ... Temporary Internet Files directory has some hidden sub-directories.
> ... using Windows Explorer, a large number of .jpg files can be seen...
> I can get rid of them by highlighting them within Windows Explorer &
> hitting DEL ... I used START->RUN & opened a DOS window using CMD.
> I then used CD to move to the TEMPORARY INTERNET FILES directory.
> The dir command WILL NOT DISPLAY the .jpg files, but Windows Explorer
> will... why DIR will not display files within the Temporary Internet Files
> directory?


David,
Look in "Temporary Internet Files\Content.IE5" instead.
To delete all folders/files in there, use:
RD "%UserProfile%\Local Settings\Temporary Internet Files\Content.IE5" /S /Q > NUL

To delete all cookies, use:
RD "%UserProfile%\Cookies" /S /Q > NUL

XP will recreate those folders as needed.
You may need to close all instances of Internet Explorer first.
 
Reply With Quote
 
David
Guest
Posts: n/a
 
      26th May 2009
On Mon, 25 May 2009 22:25:46 -0700, Al Falfa
<(E-Mail Removed)> wrote:

>David wrote:
>> ... Temporary Internet Files directory has some hidden sub-directories.
>> ... using Windows Explorer, a large number of .jpg files can be seen...
>> I can get rid of them by highlighting them within Windows Explorer &
>> hitting DEL ... I used START->RUN & opened a DOS window using CMD.
>> I then used CD to move to the TEMPORARY INTERNET FILES directory.
>> The dir command WILL NOT DISPLAY the .jpg files, but Windows Explorer
>> will... why DIR will not display files within the Temporary Internet Files
>> directory?

>
>David,
> Look in "Temporary Internet Files\Content.IE5" instead.
>To delete all folders/files in there, use:
>RD "%UserProfile%\Local Settings\Temporary Internet Files\Content.IE5" /S /Q > NUL
>
> To delete all cookies, use:
>RD "%UserProfile%\Cookies" /S /Q > NUL
>
> XP will recreate those folders as needed.
>You may need to close all instances of Internet Explorer first.


I would like to try this. However, the Content.IE5 directory does not
exist. Come to think of it, I've not seen it for quite a while. The
only child directory under Temporary Internet Files is a hidden
directory: AntiPhishing seen only in a DOS window using DIR

Temporary Internet Files directory apparently also has Read/Only &
Hidden turned on. Even with administrative privlidges, this can not
be changed.

I am assuming the %UserProfile% translates to
C:\Documents and Settings\David Where David is the currently
logged in user.


 
Reply With Quote
 
David
Guest
Posts: n/a
 
      26th May 2009
On Mon, 25 May 2009 23:04:43 +0100, "Tim Meddick"
<(E-Mail Removed)> wrote:

>David,
> Cookies are NOT located in the 'Temporary Internet Files' folder,
>although they do 'appear' to be but what you are seeing is an indexed list
>made up of files that are in other locations.
>
>The Temporary Internet Files are actually located in alphanumerically named
>sub-directories within the folder:
>"%USERPROFILE%\Local Settings\Temporary Internet Files\Content.IE5"
>
>The Cookies are actually stored in folder:
>"%USERPROFILE%\Cookies"
>
>...so your batch file should point to this folder. e.g.
>
>
>@echo off
>del "%USERPROFILE%\Cookies\*.txt"
>
>
> However, though the cookies are actually gone they may well still show
>up in the 'Temporary Internet Files' folder as I said - it's only an indexed
>list.
>
> But you can double check what I've said. If you delete the cookies out
>of the "%USERPROFILE%\Cookies" folder and then try to open one in the Temp
>Inet Files folder it won't open.
>
>
>==
>
>
>Cheers, Tim Meddick, Peckham, London. :-)
>

Tim:
I currently have IE7 installed. As I use Firefox exclusively, I have
gone into Internet Options and totally disabled cookies in IE.
"%USERPROFILE%\Cookies" is empty except for index.dat

As you suggested, I tried to open a file in Temporary Internet Files.
XP responded by giving me a message saying that it might be dangerous
to run a system command on the file I was trying to open. Being the
cautious type, I canceled the command to open the file.

I have assumed %USERPROFILE% expands to C:\Documents and
Settings\David where David is the current user. Correct?

The Content.IE5 directory and its sub-directories do not exist. They
have been gone for as long as I can remember. Since cookies can not
be stored in a directory that does not exist, the indexed list in
Temporary Internet Files seemes to me meaningless.

I don't know where Firefox stores its cookies. but I don't think its
in "%USERPROFILE%\Cookies". The only time I really recall the indexed
entries showing up is after I have been using EUDORA (my email
client).

Since the real purpose for this discussion is to rid my PC of cookies
& Temp Internet files, it seems that I have nothing to be concerned
about because the CONTENT.IE5 directory & its sub-dirs are missing.

David

















>
><David> wrote in message news:(E-Mail Removed)...
>>I have XP/Pro SP2 on my workstation. My used name (David) has
>> administrative priviledges.
>>
>> One of my backups is a data only backup onto a USB drive using a DOS
>> BATCH file & XCOPY
>>
>> I have tried to restrict all but desireable cookies from invading my
>> workstation. I've changed the Internet Options (Control Panel) and
>> the cookie rules in the various browsers I use. Apparently I've been
>> successful here. However, there seems to be one place I can not stop
>> cookies & temp internet files from being saved on my workstation. I'm
>> not sure, but its possible they are arriving through the use of
>> various other applications that insist on using IE for internet
>> access.
>>
>> This is where the cookies are being saved (My user name is David):
>>
>> C:\Documents and Settings\David\Local Settings\Temporary Internet
>> Files
>>
>> I have tried everything I can think of by adjusting the setup in
>> various appplications without success. Since I can't stop the
>> cookies, my thought is that I might be able to automate their
>> deletion. As I said, my data backup uses a DOS batch file and XCOPY.
>> I have thought of inserting a DOS DELETE command into that batch file
>> to delete the contents of the above directory. I've tried this
>> without success. With the appropriate delete command, the batch file
>> generates no error messages. However, XP/Pro apparently ignores the
>> delete command because the temp internet files & cookies don't get
>> deleted.
>>
>> I can use Windows Explorer and manually delete the stuff. But, I
>> can't figure out how to do it automatically.
>>
>> Can anyone offer any suggestions?
>>
>> David

>

 
Reply With Quote
 
Doug W.
Guest
Posts: n/a
 
      27th May 2009

<David> wrote in message
news:(E-Mail Removed)...
> On Mon, 25 May 2009 23:04:43 +0100, "Tim Meddick"
> <(E-Mail Removed)> wrote:
>
>>David,
>> Cookies are NOT located in the 'Temporary Internet
>> Files' folder,
>>although they do 'appear' to be but what you are seeing is an
>>indexed list
>>made up of files that are in other locations.
>>
>>The Temporary Internet Files are actually located in
>>alphanumerically named
>>sub-directories within the folder:
>>"%USERPROFILE%\Local Settings\Temporary Internet
>>Files\Content.IE5"
>>
>>The Cookies are actually stored in folder:
>>"%USERPROFILE%\Cookies"
>>
>>...so your batch file should point to this folder. e.g.
>>
>>
>>@echo off
>>del "%USERPROFILE%\Cookies\*.txt"
>>
>>
>> However, though the cookies are actually gone they may
>> well still show
>>up in the 'Temporary Internet Files' folder as I said - it's
>>only an indexed
>>list.
>>
>> But you can double check what I've said. If you delete
>> the cookies out
>>of the "%USERPROFILE%\Cookies" folder and then try to open one
>>in the Temp
>>Inet Files folder it won't open.
>>
>>
>>==
>>
>>
>>Cheers, Tim Meddick, Peckham, London. :-)
>>

> Tim:
> I currently have IE7 installed. As I use Firefox exclusively,
> I have
> gone into Internet Options and totally disabled cookies in IE.
> "%USERPROFILE%\Cookies" is empty except for index.dat
>
> As you suggested, I tried to open a file in Temporary Internet
> Files.
> XP responded by giving me a message saying that it might be
> dangerous
> to run a system command on the file I was trying to open.
> Being the
> cautious type, I canceled the command to open the file.
>
> I have assumed %USERPROFILE% expands to C:\Documents and
> Settings\David where David is the current user. Correct?
>
> The Content.IE5 directory and its sub-directories do not
> exist. They
> have been gone for as long as I can remember. Since cookies
> can not
> be stored in a directory that does not exist, the indexed list
> in
> Temporary Internet Files seemes to me meaningless.
>
> I don't know where Firefox stores its cookies. but I don't
> think its
> in "%USERPROFILE%\Cookies". The only time I really recall the
> indexed
> entries showing up is after I have been using EUDORA (my email
> client).
>
> Since the real purpose for this discussion is to rid my PC of
> cookies
> & Temp Internet files, it seems that I have nothing to be
> concerned
> about because the CONTENT.IE5 directory & its sub-dirs are
> missing.
>
> David
>

=================================
They will be re-created the next time you use IE.
=================================

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cookie contanier does not correctly parse Set-Cookie header with domain token dav Microsoft Dot NET Framework 2 15th Dec 2010 08:55 AM
No Cookie Removal? William Sallander Spyware Discussion 3 22nd Mar 2008 02:06 AM
removal cookie issue Nicolas Menant Windows XP Internet Explorer 0 26th Nov 2007 12:39 PM
cookie contanier does not correctly parse set cookie header with domain token dav Microsoft Dot NET Framework 0 12th Aug 2007 09:06 AM
Any downsides to cookie assignment inside custom class using HttpContext.Current? ASP.NET 2.0 cookie fix? Microsoft ASP .NET 2 17th Aug 2005 07:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 AM.