Task Scheduler question

Discussion in 'Operating Systems' started by tsunami231, May 18, 2017.

  1. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,750
    Likes Received:
    1,868
    GPU:
    EVGA 1070Ti Black
    Task Scheduler

    I just recent setup a task for CCLeaner to run daily with /AUTO augment that cleans and shut the program down.

    But I am wondering if possible to make task that will run the ccleaner.exe /auto task any time I close Firefox?
     
  2. Watcher

    Watcher Ancient Guru

    Messages:
    2,697
    Likes Received:
    371
    GPU:
    Asus Dual RX6700 XT
    For that to happen you would require a program that would be watching the condition of the Firefox executable which would then invoke the ccleaner.exe /auto command when you close Firefox.

    May I ask why you are so interested in having the cache cleaned as soon as you are no longer using Firefox?
     
  3. RandomDriverDev

    RandomDriverDev Guest

    Messages:
    111
    Likes Received:
    0
    GPU:
    1080 / 8GB and 1060 / 6GB
  4. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,612
    GPU:
    GF RTX 4070
    cmd-file:
    Code:
    start /WAIT firefox.exe
    ccleaner.exe /auto
    
     

  5. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,750
    Likes Received:
    1,868
    GPU:
    EVGA 1070Ti Black

    habbits, ocd take your pick
     
  6. Watcher

    Watcher Ancient Guru

    Messages:
    2,697
    Likes Received:
    371
    GPU:
    Asus Dual RX6700 XT
    OK, not a program, a bat file then. Fine, be that way :)
    BTW: Nice

    I think the line " ccleaner.exe /auto " should be " start ccleaner.exe /auto "

    The bat file would then be
    Code:
    start /WAIT firefox.exe
    start ccleaner.exe /auto
    end
    @tsunami231

    Paste the above code into a txt document, name and save the file.
    example: " Firefox auto clean.txt " < File name has no effect on function of code.
    Then rename the extension from .txt to .bat example " Firefox auto clean.txt " to "Firefox auto clean.bat "

    Run Bat file when you want to start Firefox. Crap cleaner will start as soon as Firefox is closed.

    BTW: You can also use Firefox in " Private Browsing " mode which has the following benefits:

    When you browse in a Private Window,
    Firefox does not save:

    • visited pages
    • cookies
    • searches
    • temporary files
    Firefox will save your:

    • bookmarks
    • downloads

    Private Browsing doesn’t make you anonymous on the Internet. Your employer or Internet service provider can still know what page you visit.

    Tracking Protection

    Some websites use trackers that can monitor your activity across the Internet. With Tracking Protection Firefox will block many trackers that can collect information about your browsing behavior.
     

Share This Page