Jump to content

Recommended Posts

Posted

I have a simple taskbar script which has some hotkeys setup + it brings up a list of a few websites. As clearing the cache is important at the moment for some users I wanted the option of chrome opening with the page that shows the clear browser settings. Thinking this would be straight forward like launching any browser eg:

chrome.exe www.autoitscript.com

I put in

chrome.exe chrome://settings/clearBrowserData

thinking it would launch and display that option page - it doesn't. It just defaults [ well in my case ] to google. I don't want to have to code deleting the user's %appdata%\AppData\Local\Google\Chrome\User Data\Default\Cache folder but will if required. It would be great just to get that page when they click on the option of use the hotkey.

Any ideas or work arounds anyone ?

Posted

Hi,

Chrome does not allow to create short links for that kind of url, that's why you can not launch it with this url.

Br, FireFox.

Posted

Ended up doing this:

Func ClearCache()
    If FileExists("C:Program FilesGoogleChromeApplicationchrome.exe") Then
    Run("C:Program FilesGoogleChromeApplicationchrome.exe about:blank", "C:Program FilesGoogleChromeApplication")
    WinWait("about:blank - Google Chrome")
    Send("^a chrome://settings/clearBrowserData{ENTER}")
    ElseIf FileExists("C:Program Files (x86)GoogleChromeApplicationchrome.exe") Then
    Run("C:Program Files (x86)GoogleChromeApplicationchrome.exe about:blank", "C:Program Files (x86)GoogleChromeApplication")
    WinWait("about:blank - Google Chrome")
    Send("^a chrome://settings/clearBrowserData{ENTER}")
Else
    MsgBox(48,"Chrome Not Installed !!","Error !!" & @CRLF & "You can't delete cache from chrome as it is not installed." & @CRLF & "Please contact the IT Helpdesk.")
    EndIf
EndFunc
  • 12 years later...
Posted (edited)

https://forum.uipath.com/t/clear-cache-in-chrome-powershell-or-cmd-prompt/195110/7

Maybe this link will be helpful?

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

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