個人自作 - Windows系統自恢復工具

該工具可以協助解決大部分的用戶問題,全自動化無需安裝。
老早寫的,還是拿出來透透氣吧。不過下面的詳細文檔全是E文的,水平有限,估計蠻多語法錯誤之類,看得懂的就看看吧。
 
echo     =========================================
echo     Please select your choice and press Enter
echo     =========================================
echo.
echo              1.Auto Recovery XP
echo.
echo              2.Reinstall TCP/IP
echo.
echo              3.Remove Temp Files
echo.
echo.             4.Refresh DNS Records
echo.
echo.             5.Reset Network Settings
echo.
echo.             6.Reset Internet Explorer
echo.
echo.             7.Reset Windows XP
echo.
echo.             8.Reboot computer
echo.
echo              0.Quit
echo.
 
There are eight integrated tools and one external tool (srvinfo.exe) as below:

Note

·         For the usage of each tools, you can type ‘command/?’ under command line to get all information, which will not be included in this section.

A common problem in the history of the Microsoft Windows operating systems has been the ability for shared system files to be overwritten by non-operating system installation programs. After such changes are made, the user may experience unpredictable system performance, ranging from application errors to operating system crashes. This problem affects several types of files--most commonly dynamic link libraries (.dll) and executable files (.exe)..

 A Windows temporary file is created under the following three circumstances:

1. Windows Desktop applications, such as Write, and multiple document interface (MDI) applications, such as Excel, create temporary files to handle necessary user editing. Because a Desktop application cannot have multiple documents open at once, it must immediately create a temporary file that allows you to undo any editing. MDI applications create temporary files only when necessary (for related editing), rather than for every worksheet that is open.

2. When you run an MS-DOS-based standard application with Windows/286, Windows/286 creates a temporary file (for example, ~PIFCHFA.TMP) so that it can swap to disk to make room for other applications to use memory.

3. When you print from Windows or any Windows-based application with the spooler enabled, Windows creates temporary files on the hard disk. Windows spools the print job to the temporary file and then sends it to the appropriate printer as a background operation. Common tool, which used with a ‘/all’ switch, displays the common settings of TCP/IP protocol for each adapter.

A scripting utility introduced in Windows 2000, is used to display the IP interface and routing information.  

netsh winsock reset

Winsock reset

Netsh int ip reset resetlog.txt

TCP/IP reset

A common command to register IE and system DLL files.
A common command to register all DLL system files.

A command console introduced in Windows XP, is used to cleanup DNS cache file.

A command line displays and modifies the IP-to-Physical address translation tables used by

address resolution protocol (ARP).

Arp –d *

Deletes the host specified by inet_addr. inet_addr may be

wildcarded with * to delete all hosts.

A command-line tool that displays protocol statistics and current TCP/IP connections using NBT

(NetBIOS over TCP/IP).

Nbtstat -R

Purges and reloads the remote cache name table

Nbtstat -RR

Sends Name Release packets to WINS and then, starts Refresh

 

A common tool, displays a information of the IP address.

Ipconfig /flushdns

Purges the DNS Resolver cache.

Ipconfig /registerdns

Refreshes all DHCP leases and re-registers DNS names


 

This module offer a guide to check every detail of the tool’s output.

The autorst.cmd runs commands as below:

sfc /purgecache

Purge system cache file

del /f /s /q %windir%\prefetch\*.*

Purge system prefetch file

del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*

Delete IE temp files

del /f /s /q “%windir%\temp”

Delete system Temp files

del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

Delete user temp files

ipconfig /flushdns

Cache DNS purge

netsh int ip reset resetlog.txt

TCP/IP Reinstall

netsh winsock reset

Winsock reset

ipconfig /registerdns

DNS register

Arp –d *

ARP table purge

Nbtstat -R

Purge remote cache name table

Nbtstat -RR

Refresh WINS record

Regsvr32 /s *.dll

Register IE and System DLL/OCX

Reboot

Reboot system to take effective

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章