Xavier59 Posted October 26, 2013 Posted October 26, 2013 Hi ! I search a script for clean cache and cookies on chrome :') Have you already see that ? Thanx.
l3ill Posted October 26, 2013 Posted October 26, 2013 Hi, I haven't seen one... ....why don't you build one so we all can use it? Thanks, Bill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 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 ...
l3ill Posted October 26, 2013 Posted October 26, 2013 Show us what ya got.. >Read this first My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 So. I find where are the cookies : C:UsersAppDataLocalGoogleChromeUser DataProfile 2Coookies. If i delete this file, is it good ? I will test it.
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 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
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 I don't understand .... I did that : FileDelete(@ScriptDir & "\Profil 2\Cache") And that don't work, the file wasn't delete. ( Full path = C:UsersXavierAppDataLocalGoogleChromeUser DataProfile 2Cache ) So ... Why ?
l3ill Posted October 26, 2013 Posted October 26, 2013 (edited) 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 October 26, 2013 by billo My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 Pff i search since 30 minutes and i don't find how to do. Cause, how can i do for find the path of a folder if i can't use @ScriptDir :/
l3ill Posted October 26, 2013 Posted October 26, 2013 $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) My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 $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 ^^
l3ill Posted October 26, 2013 Posted October 26, 2013 (edited) @ScriptDir is only one of the many directory macros @AppDataDir Might work... Edited October 26, 2013 by billo My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
l3ill Posted October 26, 2013 Posted October 26, 2013 @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) My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 I tryed that but don't work : DirRemove(@AppdataDir & "Profile 2Cache")
Xavier59 Posted October 26, 2013 Author Posted October 26, 2013 @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 !!
l3ill Posted October 26, 2013 Posted October 26, 2013 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 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now