Interstellar
Interstellar
发布于 2022-12-28 / 10 阅读
0
0

windows中CMD基本命令

chkdsk /r
检查磁盘并自动修复

SFC /scannow

 the system file checker.

It'll check your system files including things like Windows,

DL L files and replace them and fix them if they're bad.

tasklist | findstr script

 Search for script
 
taskkill /f /pid xxxx

netsh wlan show wlanreport

give you a super fancy wireless report about your wireless.

netstat

It'll also tell you what ports you have open, which is kind of important.

netstat -af

It'll also tell you what ports you have open, which is kind of important.

netstat -o

Netta can also show you the process ID for all your connections.

The dash o switch. So if there is anything dangerous connecting to you,


five giving you some sent receive statistics every five seconds.

netstat -ano
查看端口占用

netstat -aon|findstr "8081

route print

This will show the routes your computer will take to get to certain networks,


shutdown /r /fw /f /t 0 restart and into bios

net stop http

系统修复命令

sfc /SCANNOW
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-image /RestoreHealth

windows cmd,bat文件不关联默认应用 bug


assoc.cmd=exefile 
assoc.bat=exefile 


评论