In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Script comments:
@ turn off the display of the current line
Echo# shows the commands in the process of file execution
Echo off# suppresses the display of commands in the process of file execution
Del# deletion
Nul# mask command output
1 > nul# does not show correct prompt for command to run
2 > nul# does not display an error message
Pause# pauses command execution
II. Content of the script
@ echo off
Echo is clearing temporary files on the system. Please wait a moment.
Del / f / s / Q% systemdrive%\ * .tmp 2 > nul
Del / f / s / Q% systemdrive%\ *. _ mp 2 > nul
Echo is clearing log files
Del / f / s / Q% systemdrive%\ * .log 2 > nul
Echo is clearing all files in the Recycle Bin
Del / f / s / Q% systemdrive%\ recycled\ *. * 2 > nul
Echo is clearing backup files
Del / f / s / Q% windir%\ * .bak 2 > nul
Del / f / s / Q% windir%\ prefetch\ *. * 2 > nul
Echo is clearing the temporary directory of the system. Please wait a moment.
Rd / s / Q% windir%\ temp & md% windir%\ temp 2 > nul
Echo is clearing all files under cookies
Del / f / Q% userprofile%\ cookies\ *. * 2 > nul
Del / f / Q% userprofile%\ recent\ *. * 2 > nul
Del / f / s / Q "% userprofile%\ Local Settings\ Temporary Internet Files\ *." 2 > nul
Echo is clearing the temporary directory of the system. Please wait a moment.
Del / f / s / Q "% userprofile%\ Local Settings\ Temp\ *." 2 > nul
Del / f / s / Q "% userprofile%\ recent\ *. *" 2 > nul
Pause
Echo:
@ echo% dbg% off
Set a = ^ set / p = ■% b% ^ Nul^ &
Echo:
Echo ┌──┐
Set/p= nul
Del c:\ windows\ system32\ config\ system / nul Q > nul
Del c:\ windows\ system32\ config\ software / nul Q > nul
Del c:\ windows\ system32\ config\ security / nul Q > nul
Del c:\ windows\ system32\ config\ default / nul Q > nul
Echo is copying the backup SAM files and related registry files of the system.
Echo.
Copy c:\ windows\ system32\ config\ sam c:\ windows\ system32\ config\ > nul
Copy c:\ windows\ system32\ config\ system c:\ windows\ system32\ config\ > nul
Copy c:\ windows\ system32\ config\ software c:\ windows\ system32\ config\ > nul
Copy c:\ windows\ system32\ config\ security c:\ windows\ system32\ config\ > nul
Copy c:\ windows\ system32\ config\ default c:\ windows\ system32\ config\ > nul
Echo has successfully cleared all windows account password information. Now restart the machine to directly access the windows system.
@ echo off
Echo is clearing the ARP cache.
Arp-d > nul 2 > & 0
Echo is clearing the netbeui cache.
Nbtstat-r > nul 2 > & 0
Echo is clearing the DNS cache.
Dnscmd / clearcache > nul 2 > & 0
Echo successfully repaired the network connection!
@ echo off
Color 79
@ echo--
@ echo this software is mainly used to reset passwords
Echo creation date: 2017-09-13 16:16:00
@ echo author: maguangjie
@ echo--
@ echo reset user name must be entered correctly, otherwise the execution is invalid!
Set / p userNames= Please enter the user name to reset:
If statement
If [not] errorlevel number command
If [not] exist filename command executes the command line based on the existence of the file
@ echo off
Dir C:
If errorlevel 1 goto 1
If errorlevel 0 goto 0
: 0
Goto exit
Echo "Command executed successfully"
: 1
Echo "Command execution failed"
Goto exit
Pause
@ echo off
If exist "C:\ aaa.txt" del "C:\ aaa.txt"
Netsh interface ip show config, which displays the network configuration of the current system
Reproduce the installation TCP/IP protocol. Run the following command: netsh int ip reset c:\ resetlog.txt
For / l%% I in (1jie 1100) do ping 172.18.33% I-n 1-w 1 > > c:/3.txt
Pause
3. Set the boot to execute the script step automatically.
The first step,
The second step,
Fourth, the system operation is still not smooth (turn off all unnecessary animations)
The first step
Step two
Step three
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.