- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
《windows 系统管理--使用命令行,批处理文件和 windows 脚本》(命令行基础)
上一篇 / 下一篇 2009-01-06 15:26:52
查看 ( 353 ) / 评论 ( 0 ) / 评分 ( 0 / 0 )
很多的 系统 管理员可能认为 命令 行是 程序 员编程用的, 这是不对的, 其
实命令行是另一种用来管理计算机的接口。
1 命令行窗口
Windows NT/Windows 2000 以后的 操作系统 为用户提供了两种命令行窗口: cmd.exe 和
,CMD.EXE 是 Windows 窗口命令行接口,因此它可以通过窗口右上角的 X 来关闭,它
不是一个 dos 窗口, 而 COMMAND.COM 是一个 16 位的 DOS 应用程序,它用于支持老的 dos 应用程序,
它必须通过命令行输入 exit 才可以退出,它一般运行于 NTVDM 中。但就用户来说,这两个命令有惊人的
相似之处, 如果用户运行 command.exe ,用户会在任务管理器中看到一个进程 ntvdm.exe 在运行, 如果运
行 cmd.exe 则进程可以看到 cmd.exe ,而且 command.exe 还支持以前的 16 位的现在已经不用的命令。
下面分别是 2 种接口的打开方法和显示结果。
在开始 -运行,输入 cmd, 然后 enter 。如下:
在开始 -运行,输入 command ,然后 enter 。如下:
2 窗口的属性
第一种方法:
窗口中输入命令: Cmd [{/A | /U}] [/Q] [/D] [/E: {ON | OFF}] [[/S] [{/C | /K}] string] [/V:{ON |/OFF}] [/T:FG]
参数的含义:
/C string Executes the command specified in the string and then exits the command shell.
/K string Executes the command specified in the string and does not exit the command shell.
/S Modifies the commands used as strings with the /C and /K parameters. Usually, you place quotes
around command strings.The /S parameter removes the pening and closing quotes before processing
the command.
/A Causes the output of internal commands to be sent to a file (this process is also called piping) in ANSI
character format.
/U Causes the output of internal commands to be sent to a file (this process is also called piping) in
Unicode character format.
/Q Turns off echo, which is on by default. Echo off mode is also known as quiet mode. When echo is on,
each command is displayed as it is processed.
/D Disables the AutoRun command from the Registry.
/E:ON Enables command extensions if they were disabled. Command extensions are enabled by default.
/E:OFF Disables command extensions.
/F:ON Enables the completion of characters for files and directories, which help imp
原创力文档


文档评论(0)