CMD Primary

1.关闭校园网

netsh interface set interface "以太网" "disabled"
netsh interface set interface "以太网" "enabled"

2.wmic命今

wmic DiskDrive get Size /value

wmic diskdrive get size|find /v "S"

3.常用运行命令

%systemroot%\system32\control.exe /name canonicalName /page pageName  (Canonical Names of Control Panel Items)

control.exe inetcpl.cpl,,4

eventvwr  事件查看器

rstrui  系统还原

taskschd.msc  任务计划程序

snippingtool  截图(Alt+PrtSc复制窗口)

 

 

 

 4.robocopy

robocopy d:\software\firefox\ firefox /mir /xd d:\software\firefox\profile\cache

注意对源文件的目录、文件都要全路径

5.获取桌面

for /f %i in ('dir /ad /b /s %USERPROFILE%^|findstr CachedFiles$') do explorer %i

for /R %USERPROFILE% %i in (*Wallpaper) do explorer %~pi

for /r d: %i in (*"rest for eye.ahk") do explorer /select, %i

for /r "%programfiles(x86)%" %i in (*qq.exe) do echo %i  (注意“”不能少)

 

6.取得权限 

takeown /F fileName

 

7.查找WIFI密码

netsh wlan show profile

netsh wlan show profiles name="..." key=clear  In "Security settings" item

posted @ 2013-08-29 18:30  cnsealine  阅读(185)  评论(0编辑  收藏  举报