个人自作 - 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.
 
1.            Individual tool
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.
1.1.            SFC
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)..
1.2.            Temporary Files
 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.
1.3.            netsh
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
1.4.            Internet Explorer core DLL
A common command to register IE and system DLL files.
1.5.            System DLL register
A common command to register all DLL system files.
1.6.            DNS cache
A command console introduced in Windows XP, is used to cleanup DNS cache file.
1.7.            Arp
A command line displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).
Arp �Cd *
Deletes the host specified by inet_addr. inet_addr may be
wildcarded with * to delete all hosts.
1.8.            Nbtstat
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
 
1.9.            Ipconfig
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

 
2.            Execute
This module offer a guide to check every detail of the tool’s output.
2.1.            execute procedure
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 �Cd *
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
 
 

你可能感兴趣的:(windows,XP,职场,休闲,recovery)