1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to? Reply to answer from a .BTM

Discussion in 'T&T - Functions' started by BobK, Jan 25, 2013.

  1. BobK

    Joined:
    Sep 11, 2009
    Messages:
    35
    Likes Received:
    0
    I would like to have all cookies and temp files deleted at boot time.
    I am using the following simple BTM file
    RD C:\Users\me\AppData\Local\Microsoft\Windows\Temporary Internet Files\low\Content.IE5 /s
    RD C:\Users\me\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5 /s
    DEL C:\Users\me\AppData\Roaming\Microsoft\Windows\Cookies\*.txt
    DEL C:\Users\me\AppData\Roaming\Microsoft\Windows\Cookies\low\*.txt

    All require me to reply 'Y' to the "Are you sure" query. How do I pre-answer it?

    The first two, the RD's, don't delete the lowest directory as protected files are in
    both. The last two leave the lowest directory but remove the .TXT cookies files

    If someone has a better idea, I'm open to it.

    Bob
     
  2. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    Please try

    del /y /s /n "C:\Users\me\AppData\Local\Microsoft\Windows\Temporary Internet Files\low\Content.IE5"\*.*

    ( /Y(es to all prompts), /S(ubdirectories), /N Do everything except actually delete the file(s) = just for this test )


    and likewise for the other directories.



     
  3. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    680
    Likes Received:
    8
    Hi,
    Not sure if this is what you are looking for, but according to the help file, the /Q option, "When used with the /S option, this will suppress the prompt before deleting the directories."

    What I use to delete cookies, and other files, is Cache Cleaner, available from (http://www.piriform.com/ccleaner). It can be run from the command line, thus;

    Code:
    ccleaner /auto
    
    While you want to delete these files at startup, I delete mine automatically after I close FireFox. How? I have the following in my 4start.btm file;

    Code:
    processmonitor "C:\Program Files\Mozilla Firefox\firefox.exe" ended forever ccleaner /auto
    Hope this helps.

    Joe
     
  4. BobK

    Joined:
    Sep 11, 2009
    Messages:
    35
    Likes Received:
    0
    DOH! When all else fails -- Read the instructions... Thanks Frank...

    I should've checked this forum earlier. This site doesn't send notification of replies et al.

    Bob

    Never use a big word when a diminutive will suffice
     

Share This Page