Clean IE and use history's BAT code _dos/bat

Source: Internet
Author: User

Copy Code code as follows:

@echo off
Title:ie Temporary file deleter
Echo is cleaning up the temporary Internet files ....
RunDll32.exe Inetcpl.cpl,clearmytracksbyprocess 8
echo Clears cookies
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 2
Echo Purge History
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 1
echo Clears the form data
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 16
echo Clear Password
RunDll32.exe Inetcpl.cpl,clearmytracksbyprocess 32
Echo clears all of the above items
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 255
Echo clears all of the above items, as well as the various data saved by the add-in used in IE7
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 4351
MSG * Your useless files have been crashed,master ...
Pause

How does the batch process clean up the XP system's use traces?
XP system, can you use batch processing to clean up the use of traces of the function?
ie use traces of the trace system using traces of software and so on.
Online search a few, feel not very useful.
Do not want to use software cleanup, just want to run the bat file, it automatically cleaned up.
There is no bat batch processing, to achieve cleaning up the angel. rar This software inside the cleaning traces function?


Lieutenant Ygqiang Rank:5rank:5 Post 356 points 803 Technology 1 Contributions 0 registration time 2010-4-18 2 floor
Posted on 2011-4-8 14:03 | Just look at the author
Actually, I was trying to clean up the Internet trail.
BAT files downloaded on the Web, No.
This software, clean the more thorough!

Copy Code code as follows:

@echo off
Mode con cols=50 lines=15
Echo is about to clean up after 10 seconds, please close the browser first
Ping-n 127.1>nul 2>nul
Cls
echo cleanup, please later ...
del/f/s/q%temp%\*.* >nul 2>nul
del/f/s/q "%userprofile%\locals~1\tempor~1\*.*" >nul 2>nul
del/f/s/q "%systemdirve%\recycled\*.*" >nul 2>nul
del/f/s/q "%userprofile%\recent\*.*" >nul 2>nul
del/f/s/q "%userprofile%\cookies\*.*" >nul 2>nul
del/f/s/q "%userprofile%\locals~1\history\*.*" >nul 2>nul
echo y | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" >nul 2>nul
echo y | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\cache\extensible Cache ">nul 2>nul
Cls
echo Cleanup complete, press any key to exit
Pause>nul

The following code is optimized to record cleanup log information, and so on

Copy Code code as follows:

@echo off
Color 0a
Mode con cols=100 lines=350
Echo%date%%time%
Set time1=%time::=%
Set file=%time1:~,8%
Echo is about to clean up, please close the browser first
Set/p=<nul 1>cls%file%.log 2>clserr%file%.log
set/p a= Are you sure you want to keep cleaning up? (y/n)
if/i not "%a%" = = "Y" goto:end

echo cleanup, please later ...
echo------------------------------------start cleanup:%temp%\*.*>>cls%file%.log
del/f/s/q%temp%\*.* >>cls%file%.log 2>>clserr%file%.log
del/f/s/q "%userprofile%\locals~1\tempor~1\*.*" >>cls%file%.log 2>>clserr%file%.log
del/f/s/q "%systemdirve%\recycled\*.*" >>cls%file%.log 2>>clserr%file%.log
del/f/s/q "%userprofile%\recent\*.*" >>cls%file%.log 2>>clserr%file%.log
del/f/s/q "%userprofile%\cookies\*.*" >>cls%file%.log 2>>clserr%file%.log
del/f/s/q "%userprofile%\locals~1\history\*.*" >>cls%file%.log 2>>clserr%file%.log
echo------------------------------------Start cleanup: Registry information >>cls%file%.log
echo y | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" >>cls%file%.log 2>>clsErr %file%.log
echo y | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\cache\extensible Cache ">>cls%file%.log 2>>clserr%file%.log
echo Cleanup complete, press any key to exit

: End
Pause

2 files were found,
But can you put these 2 files into 1 bat batch files or reg files?

1, completely screen history. ini

The contents of the file are:

Copy Code code as follows:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
"Save_session_history_on_exit" = "yes"
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs [8]

2, completely screen history. bat

The contents of the file are:

Copy Code code as follows:

REG ADD "Hkcu\software\microsoft\windows\currentversion\explorer\user Shell Folders"/f/v "History"/t reg_expand_sz/d "%%userprofile%%\local settings\history//\"
Regini completely shields history. ini

Disposed with 1 bat batches.

Copy Code code as follows:

; Delete Internet records
REG ADD "Hkcu\software\microsoft\windows\currentversion\explorer\user Shell Folders"/f/v "History"/t reg_expand_sz/d "%%userprofile%%\local settings\history//\"
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs"
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"/f/v "save_session_history_on_exit"/t reg_sz/d "Yes"
echo HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\typedurl [8]>tmp.ini
Regini Tmp.ini
If "%errorlevel%" = = "0" del Tmp.ini

Above, you can block the "history" of IE browser
But how to clear the Internet IE Address bar history site records?

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.