EV: Windows Commands 命令
Keywords: at,
- at
- cmd /K "cd \" 打开cmd窗口,然后执行"cd \"
- doskey: 执行此命令,可以快速输入(调出)曾经输入过的命令。命令行中插入字符:DOS中默认是替换方式的,按Insert键可切换成插入方式;或者在执行doskey 命令是调用参数:doskey /insert
- dir: dir命令的/A-D修饰可去掉目录的显示:DIR /A-D *.*
- more dos commands like echo, type, copy, con ... see DOS batch commands
- cscript (wscript)
- dxdiag.exe 运行DirectX
- ping -a 10.89.51.110
- hostname
- net send 10.89.51.110 Hello
- net share
net share abc=C:
net share abc /delete
net share G$ /delete
- net start/stop [service] 如:net start mssqlserver(启动MSSQLServer服务)
- net view 192.168.10.8
- netstat –a 查看本地计算机上的连接
- help
- tracert 10.89.51.110 查看IP地址为10.89.51.110的计算机名
- Ipconfig/all
- nslookup
- sys 设置系统盘
- regsvr32
- sfc:
- sysedit
- regedit
- gpedit.msc
- secpol.msc
- compmgmt.msc 计算机管理
- msconfig
- command
- explorer
- Parameters
- explorer /select, "E:\Projects\ActiveNet\Dev\2016\49182_kennewick"
- Press F4 in a explorer window
- Parameters
- desktop
- inetcpl.cpl 打开Internet Options属性设置窗口
- Start .
start calc.exe
start explorer.exe
- C:\WINDOWS\SYSTEM\IME\PINTLGNT\PINTLPHR.EXE
- C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows (关机)
- C:\WINDOWS\RUNDLL32.EXE shell32,SHExitWindowsEx (注销)
- %windir%\System32\rundll32.exe user32.dll,LockWorkStation (锁定—用于windows2000/XP)
- eventvwr.msc Event Viewer/windows事件查看器
osql -U sa -P wei8765 -q "sp_defaultdb 'sa', 'master'"
runas /env /netonly /user:"BQC\Honge Vii " "c:\Program Files\Internet Explorer\IEXPLORE.EXE"
defrag.exe <volume> [-a] [-f] [-v] [-b] [-?]
如:defrag.exe d: /f 磁盘整理(WindowsXP)
control.exe 控制面板:
①向导类参数:control.exe appwiz.cpl @[向导编号],[向导细项编号]
其中向导编号指定控制面板中的各项目,如"添加/删除程序"的向导编号=0。如果某项目包含一些细项,如"添加/删除程序"窗口中包含"更改或删除程序"、"添加新程序"、"添加/删除Windows组件"和"设定程序访问和默认值"等四项,每个细项由向导细项编号指定,上述四项对应的细项编号分别是0、1、2、3。如果要打开"更改或删除程序"窗口,运行control.exe appwiz.cpl @0,0即可。
注意使用system32目录下的其它*.cpl文件,来代替appwiz.cpl。
②管理用户参数control.exe userpasswords2
自动登录XP系统:打开用户帐户管理窗口,在列表里选中用来自动登录的用户,勾上“要使用本机,用户必须输入用户名和密码”。
COPY:
copy con output.txt Copy from Console to ...
After you type this command and press ENTER, MS-DOS copies everything you
type to the file OUTPUT.TXT. When you are finished typing, press CTRL+Z to
indicate that you want to end the file. The Control-Z character will
appear on the screen as " ^Z ". You can also end a COPY CON command by
pressing the F6 key. Pressing F6 also generates the Control-Z character;
a " ^Z " still appears on the screen.
The following example copies information from the keyboard to a printer connected to LPT1:
copy con lpt1
msinfo32: 显示系统信息
shutdown -s -f -t 30 -c "关机时间到了,请迅速保存资料,系统正准备关机..."
msinfo32
显示系统信息:操作系统、主板BIOS,内存
net start <vpnagent>
启动服务
Kill process/Show process in Windows 7
tasklist /FI "IMAGENAME eq OpenCourse.Desktop.exe"
taskkill /IM OpenCourse.Desktop.exe /F