Combine two commands



  • Is there a way to combine delete browser history and the clean up commands? Possibly clearing Chromes history as well as internet explorer?


  • administrators

    @mark-kreger, you could create a c:\tools folder, and in it, create a ClearHistory.bat file in it with these contents:

    REM Clear IE history:
    rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
    
    REM Clear Chrome history:
    cd /d C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data
    del /s History*
    

    Then create a TRIGGERcmd command that runs c:\tools\ClearHistory.bat


Log in to reply
 

Looks like your connection to TRIGGERcmd Forum was lost, please wait while we try to reconnect.