How to? Reply to answer from a .BTM

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Sep 11, 2009
35
0
Portland, Or.
#1
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
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
If someone has a better idea, I'm open to it.

Bob
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
 
Sep 11, 2009
35
0
Portland, Or.
#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.
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