Clean all Cookies under the account

Source: Internet
Author: User

As a result of the deletion of cookies generally only for this account, so many people logged in the computer, we need to clean up the cookies need to be logged into each account and then delete, or with administrator rights of the account login and then open each account to delete, and if the account number has a dozen, Manual removal is a very troublesome thing.

Open Notepad First, and then copy the following to Notepad:

echo off

Color 0a



:: Title cleaning cookies and browser spam files under all accounts on this machine

Dir "%systemdrive%documents and Settings"/ad/b >%systemdrive%dirtmp.txt

for/f%%a in (%systemdrive%dirtmp.txt) do del/f/s/q "%systemdrive%documents and Settings%%acookies*.*" &del/f/S/ Q "%systemdrive%documents and settings%%alocal settingstemporary Internet files*.*"



Then in Notepad, click the File menu, and then select the Save As command:

In the dialog box that pops up, select Save type as all files, enter a filename in file name, End With. bat, and then click the Save button:

Then locate and double-click the saved. bat file:

In the pop-up window, you can see that the current program is automatically cleaning up the cookie file under all the accounts in your computer:

At this point you open the "My Computer" under the C-packing directory, you should be able to see a DirTmp.txt file:

This file is just our program generated, which is all logged in the local account, we can manually delete:

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.