Jump to content

Recommended Posts

Posted (edited)

It depends on where the folder is, but cookies are all .txt files, I think. To delete the temporary cookies on my particular machine with the default way it is set up:

FileDelete("C:\Documents and Settings\Owner\Local Settings\Temporary Internet Files\*.txt")

I did find this folder though:

C:\WINDOWS\Temp\Cookies

Edited by Squirrely1

Das Häschen benutzt Radar

Posted

ah you know in Internet explorer there is a function to Delete Cookies?

If the window is invisible, can the script still be able to click that button ?

Seriously, No .. The button will not be clickable if the window is hidden or do not exists.

Posted

I would say that it would be easier to just delete the cookie files(I also found some cookies in "C:\Documents and Settings\FreeFry\Cookies") rather than having to automate the iexplorer window..

Posted (edited)

Yeah, FreeFry has the right approach, there is a hidden folder to the permanent cookies here:

C:\Documents and Settings\Owner\Cookies

but it would be best - if it is the currently-logged-on user whose cookies you are targetting, to use this code to get the folder name, and then just delete everything in it:

$StaleCookies = @UserProfileDir & "\Cookies"
FileDelete($StaleCookies & "\*.*")
Edited by Squirrely1

Das Häschen benutzt Radar

Posted

Yeah, FreeFry has the right approach, there is a hidden folder to the permanent cookies here:

C:\Documents and Settings\Owner\Cookies

but it would be best - if it is the currently-logged-on user whose cookies you are targetting, to use this code to get the folder name, and then just delete everything in it:

$StaleCookies = @UserProfileDir & "\Cookies"
FileDelete($StaleCookies & "\*.*")
Yes, ofcourse.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...