Clean up IE and bat code using history

Time:2019-8-11

Copy codeThe code is as follows:
@echo off
title: IE temporary file deleter
Echo is clearing temporary Internet files…
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Echo clears Cookies
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
Echo clears historical records
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Echo clears form data
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
Echo clears passwords
  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 and the various data saved by the add-ons used in IE7
  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351 
msg * your useless files have been crashed,master……..
pause

How does batch processing clean up the traces of XP system usage?
Under XP system, can batch processing be used to clean up the traces of usage?
IE use traces, system use traces, software use traces and so on.
Several searches on the Internet have not been very helpful.
Do not want to use software cleaning, just want to run bat files, automatically clean up.
Is there a batch process to clean up the traces in Angel rar?

Lt. Rank: 5Rank: 5Rank: 5post 356 points 803 technology 1 Donation 0 Registration time 2010-4-182 floor
Published in 2011-4-8 14:03 | Just look at the author
In fact, I mainly want to clean up the Internet traces.
Ba files downloaded online, no
This software, clean up more thoroughly!

Copy codeThe code is as follows:
@echo off
mode con cols=50 lines=15
Echo will be cleaned up in 10 seconds. Please close the browser first.
ping -n 10 127.1>nul 2>nul
cls
In echo cleaning, please wait a moment.
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 clean up, press any key to exit
pause>nul

The following code is optimized to record cleanup log information, etc.

Copy codeThe code is 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 be cleaned 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 continue cleaning? (Y/N)
if /i  not “%a%”==”y” goto :end

In echo cleaning, please wait a moment.
Echo – ————————————————————————————————————————————————————————————–
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 – ———————————————————————————————————————————————————————-
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 clean up, press any key to exit

:end
pause

Two files were found.
But can these two files be included in one bat batch file or reg file?

1. Shield historical records completely.ini

The contents of the document are as follows:

Copy codeThe code is 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. Shield historical records completely.

The contents of the document are as follows:

Copy codeThe code is 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 blocked historical records.ini

It was solved by batch processing with 1 bat.

Copy codeThe code is as follows:
Delete online 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 this, you can shield the “history” of IE browser
But how to clear the IE address bar of the historical website records?