Jump to content

Clean cache and cookies [ CHROME ]


 Share

Recommended Posts

I search 

Hi,

  I haven't seen one...

 

....why don't you build one so we all can use it?

Thanks,

Bill

 

I try I try, but i started autoit only 2 month ago so it's difficult for me :)

First, i try to find where chrome cookie are stocked ...

Link to comment
Share on other sites

So.

I find where are the cookies :

C:UsersAppDataLocalGoogleChromeUser DataProfile 2Coookies.

If i delete this file, is it good ?

I will test it.

 

I found the solution.

Now, i make a simple script to delete that.

After that, i just share it.

Thanx

Link to comment
Share on other sites

Scriptdir is where your script is located

for testing try using the full path to the file first.

BTW File Delete only deletes files...

cache is a folder

Use:

DirRemove($dPath_Cache, 1)

But your on the right path, keep trying.

Edited by billo
Link to comment
Share on other sites

$dPath = (" C:\Users\Xavier\AppData\Local\Google\Chrome\User Data\Profile 2\")
$dPath_Cache = (" C:\Users\Xavier\AppData\Local\Google\Chrome\User Data\Profile 2\Cache")

; "Profile 2" is normally "Default" so you have more than 1 profile you'll have to add them.

FileDelete($dPath & "\" & "Cookies")
FileDelete($dPath & "\" & "Cookies-journal")
FileDelete($dPath & "\" & "Current Session")
FileDelete($dPath & "\" & "History")
FileDelete($dPath & "\" & "History-journal")

DirRemove($dPath_Cache, 1)

Link to comment
Share on other sites

$dPath = (" C:\Users\Xavier\AppData\Local\Google\Chrome\User Data\Profile 2\")
$dPath_Cache = (" C:\Users\Xavier\AppData\Local\Google\Chrome\User Data\Profile 2\Cache")

; "Profile 2" is normally "Default" so you have more than 1 profile you'll have to add them.

FileDelete($dPath & "\" & "Cookies")
FileDelete($dPath & "\" & "Cookies-journal")
FileDelete($dPath & "\" & "Current Session")
FileDelete($dPath & "\" & "History")
FileDelete($dPath & "\" & "History-journal")

DirRemove($dPath_Cache, 1)

I know to do that.

Just, i want my script can be execute and another computer, and then, the folder couldn't be the same ^^

Link to comment
Share on other sites

@AppData doesn't work for me.

This one should work on other pc's that are using their default profile:

$dPath = (@UserProfileDir & "\AppData\Local\Google\Chrome\User Data\Default\")
$dPath_Cache = (@UserProfileDir & "\AppData\Local\Google\Chrome\User Data\Default\Cache")

FileDelete($dPath & "\" & "Cookies")
FileDelete($dPath & "\" & "Cookies-journal")
FileDelete($dPath & "\" & "Current Session")
FileDelete($dPath & "\" & "History")
FileDelete($dPath & "\" & "History-journal")

DirRemove($dPath_Cache, 1)
Link to comment
Share on other sites

 

@AppData doesn't work for me.

This one should work on other pc's that are using their default profile:

$dPath = (@UserProfileDir & "\AppData\Local\Google\Chrome\User Data\Default\")
$dPath_Cache = (@UserProfileDir & "\AppData\Local\Google\Chrome\User Data\Default\Cache")

FileDelete($dPath & "\" & "Cookies")
FileDelete($dPath & "\" & "Cookies-journal")
FileDelete($dPath & "\" & "Current Session")
FileDelete($dPath & "\" & "History")
FileDelete($dPath & "\" & "History-journal")

DirRemove($dPath_Cache, 1)

Ok thanx !! 

Link to comment
Share on other sites

Just FYI,

  @AppDataDir will only get you as far as your AppData Folder.

any folder after that will have to be added manually.

so for you it would be:

@AppDataDir & "\Local\Google\Chrome\User Data\Profile 2"

as opposed to this - Full path 

C:\Users\AppData\Local\Google\Chrome\User Data\Profile 2
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...