a simple script

Posted on 2014-08-21
Last Modified: 2014-08-21
I need a bat file (or anything else) that starts randomly one of the browsers (explorer, firefox or chrome) and deletes its cache, history, and cookies.
Question by:axcx
    1 Comment
    LVL 11

    Accepted Solution

    :: Batch script to clear browsing history, download history, and empty the cache for Mozila Firefox.
    :: Script can be run via GFI MAX RM 
    @echo off
    set DataDir=C:\Users\%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles
    del /q /s /f "%DataDir%"
    rd /s /q "%DataDir%"
    for /d %%x in (C:\Users\%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite
    IF %ERRORLEVEL%==0 (
    @echo "Success Message"
    timeout 10
    ) ELSE (
    @echo "Error Message"
    exit 1001

    Open in new window

    Some other scripts are also given in the below link:

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Detailed instructions on how to install an Access add-in in recent versions of Office and Windows (with screen shots)
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    The goal of this Micro Tutorial is to help navigate beginning users with the app store on Windows 8. It will explain exciting features how to maximize your PC through these apps. This will be demonstrated using Windows 8 operating system.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now