余刘琅 Yu Liu Lang
虽然Win2000已断然抛弃了DOS,但仍然提供对命令行控制台的支持。 Although Win2000 has been categorically abandoned DOS, but still provide support for command line console. 其命令行不少命令在用法上与Win9x的DOS命令相似,但它们的参数、功能、运行环境等却有了很大的不同,有关命令已经不再是16位程序,而且有些命令还与图形界面浑然一体,甚至有些命令还能直接访问注册表信息。 Many commands in its command line usage is similar to the DOS command with Win9x, but their parameters, functions, operating environment, etc. there is a very different, the order is no longer a 16-bit programs, but some commands with graphics seamless interface, and even some commands can directly access the registry information. 因此我们应当将Win2000的命令行控制台看作是图形界面不可或缺的补充。 Therefore, we should be the Win2000 command line console as an indispensable complement to the graphical interface.
1. 位置及地位特殊命令行程序已经不专门用Command目录存放,而是放在32位系统文件的仓库重地——Win2000安装目录下的system32子目录中,由此可知Win2000的命令行命令已经不再是系统的“小妾”而是被纳为“正房”,而且通过查看system32\dllcache目录可知,Win2000还将它们列入了受保护的系统文件之列,一旦system32目录中的命令行命令受损,就用该dllcache目录中的备份随即恢复;当然由于Win2000是脱胎于WinNT,所以命令行调用主程序已经不是Win9x时代的command.com,而是类似于NT下的cmd.exe。 1 position and status of the special command-line program does not specifically use the Command directory have been kept, but on the 32-bit system file storage powerhouse - Win2000 installation directory under the system32 subdirectory, can be seen Win2000 command line command has not then the system's "concubine" but was satisfied that the "main house" and by looking system32 \ dllcache directory we can see, Win2000 will they be included in the list of protected system files once the system32 directory in the command-line command damaged, use the dllcache directory, then restore the backup; of course, is born out of due Win2000 WinNT, so the main command line call is not Win9x era command.com, but similar to the NT under cmd.exe.
2.一些命令只能通过命令行直接执行如Win9x中的系统文件扫描器sfc.exe是一个Windows风格的对话框界面,而在Win2000中的这条命令却必需在命令行状态手工输入有关参数才能按要求运行,而运行时又是标准的图形界面。 2 Some commands can only be executed directly by the command line in the Win9x system files such as scanners sfc.exe is a Windows-style dialog box interface, and in the Win2000 command in this state is necessary to manually enter the command line parameters to the required to run, and run time for the standard graphical interface.
3.命令行窗口的使用与以前大不相同①复制、粘贴操作不同。 3 Use the command line window with the previous different ① copy, paste different. 在窗口状态下,已经不再像Win9x的DOS窗口那样有一条工具栏,因此不少人发现无法在Win2000的命令行窗口中进行复制等操作,其实Win2000的命令行窗口是支持窗口内容的选定、复制、粘贴等操作的,但有关命令却给隐藏了起来。 In the window state, are no longer there for Win9x DOS window as a toolbar, so many people found it impossible in Win2000 command line window, copying and other operations, in fact, the Win2000 command line window is to support the content of the selected window , copy, paste and other operations, but gave the order went into hiding. 用鼠标对窗口内容的直接操作只能够是选取,即按下鼠标左键拖动时其内容会反白显示,如果再按CTRL+C命令则无法将选取内容复制到剪贴板,而必须在窗口的标题栏上点击鼠标右键,然后选择“编辑”,这时才就会看到有关复制、粘贴等操作命令的菜单。 Contents of the window with the mouse operation can only be selected directly, that the left mouse button while dragging the content is highlighted, press CTRL + C command if you can not select the content to the clipboard, but must be in the window Right click the title bar, then select "Edit", then it will see the copy, paste and other operations command menu.
②可以前后浏览每一步操作屏幕所显示的内容。 ② can browse back and forth every step of the operation screen of the display. 这在全屏幕状态下是不行的,必需使用Alt+Enter键切换到窗口状态,这时窗口右侧会出现一个滚动条,拖动滚动条就可前后任意浏览了,但如操作的显示结果太多,则超过内存缓冲的内容会按照FIFO(First in First out,先进先出)原则自动丢弃,使用cls命令后可以同时清除屏幕及缓冲区的内容。 This full-screen mode is not enough, it is necessary to use Alt + Enter key to switch to window mode, then there will be a window on the right scroll bar, you can drag the scroll bar before and after any browser, but the operation of the display the results as too much more than the contents of the memory buffer will be in accordance with FIFO (First in First out, first in first out) principle automatically discarded after use cls command clears the screen and buffer the content.
4.添加了大量快捷功能键和强大方便的类doskey功能 4 add a lot of shortcut keys and the powerful and convenient features like doskey
Win2000的命令行状态下,通过mem/c看不到内存中自动加载doskey.exe命令的迹象,但的确具备极强大的类似传统的doskey的功能,比如: Win2000 command line mode, through the mem / c do not see the memory commands are automatically loaded doskey.exe signs, but it does have a strong tradition of doskey similar large features, such as:
PageUp、PageDown:重新调用最近的两条命令↑↓:在历史命令中按先后顺序逐条重新调用命令; PageUp, PageDown: two recent re-call command ↑ ↓: in order one by one according to the command history recall commands;
←→:在命令行移动光标,可以对已经输入的命令行进行编辑; ← →: Move the cursor on the command line, you can have the command-line editing;
Insert:切换命令行编辑的插入与改写状态; Insert: insert the switch command-line editing and rewriting the state;
Home、End:快速移动光标到命令行的开头或结尾; Home, End: fast-moving cursor to the beginning or end of the command line;
Delete:删除光标后面的字符; Delete: Delete the character behind the cursor;
Enter:复制窗口内选定的内容(用之取代CTRL+C命令); Enter: copy the contents of the selected window (CTRL + C to use the replace command);
F7:显示历史命令列表,可从列表中方便地选取曾经使用过的命令; F7: Displays the history list of commands, you can easily select from a list of the commands have been used;
F9:输入命令号码功能,直接输入历史命令的编号就可直接使用该命令。 F9: Enter the command number, direct number input command history can be used directly in the command.
其它从F1~F9键都分别定义了不同的功能,具体操作时一试便知。 Other keys from F1 ~ F9 defines different functions, the specific operation to try a glance.
5. 对系统已挂接的码表输入法的直接支持以前Win9x的DOS命令提示符下要显示和输入汉字,必须单独启动中文输入法,如PDOS95或UCDOS等其它汉字系统,在Win2000的Cmd.exe命令行下已经可以直接显示汉字,并可以按图形界面完全相同的热键直接调用系统中已经安装的各种码表输入法,如 Ctrl+Shift切换输入法,Ctrl+Space切换输入法开关,Shift+Space切换全角与半角状态,Ctrl+.切换中英文标点等,使用很方便;不过,该命令行下的输入法只能在命令行进行输入,比如打开了一个Edit编辑器,输入法就不起作用了,这不能不说是一个很大的遗憾! 5 mounted on the system's input method code table before the direct support of Win9x's DOS command prompt to display and input Chinese characters, Chinese input method must be started separately, such as PDOS95 or UCDOS other Chinese system, in the Win2000 Cmd. exe command line already can display Chinese characters, and can press the hotkey graphical interface to directly call the same system has been installed in various code table input method, such as Ctrl + Shift to switch input method, Ctrl + Space to switch input method switch, Shift + Space to switch full-size and half the state, Ctrl +. Switch in English punctuation, etc., very easy to use; However, the command line input method can only be entered on the command line, such as opening an Edit editor input can not work, and say that this is a great pity!
6.新增多条内部命令 6 new multiple internal command
Color:设置默认的控制台前景和背景颜色。 Color: Sets the default console foreground and background colors. 我们再也不必羡慕其它操作系统丰富的控制台颜色设置命令了! We no longer have to envy other operating systems color settings rich console commands!
用法:Color [attr] 其中attr为指定控制台输出的颜色属性颜色属性由两个十六进制数字指定—— 第一个为背景,第二个则为前景。 Usage: Color [attr] attr specified which color attribute of console output Color attributes specified by the two hexadecimal digits - the first for the background, was the second prospect. 每个数字可以为以下任何值之一: Each number can be any of the following values:
如果没有给定任何参数,该命令会将颜色还原到CMD.EXE启动时的颜色。 If not given any parameters, the command will restore the color to the color when CMD.EXE started. 这个值来自当前控制台窗口、/T 命令行命令选项或DefaultColor注册表值。 This value comes from the current console window, / T command-line commands or DefaultColor registry value.
如果用相同的前景和背景颜色来执行Color命令,Color命令会将ErrorLevel设置为1。 If you use the same foreground and background colors to execute commands Color, Color command will ErrorLevel is set to 1.
例如: "Color fc" 在亮白色上产生亮红色,试着输入一个“Color 02”,哈哈……你的屏幕的显示变成了黑底绿字,再也不是一成不变的黑底白字了。 For example: "Color fc" produces light in the bright white on red, trying to enter a "Color 02", ha ha ... your display into a black screen, green word, is no longer a static black and white.
Pushd:保存当前目录以供Popd命令使用,然后改到指定的目录。 Pushd: Save the current directory for Popd command, then change to the specified directory.
用法:Pushd [path | ..] 其中path为指定要成为当前目录的目录。 Usage: Pushd [path | ..] where path is specified to be the current directory.
如果命令扩展名被启用,除了一般驱动器号和路径,Pushd命令还接受网络路径。 If Command Extensions are enabled, in addition to normal drive letter and path, Pushd command also accepts network paths. 如果指定了网络路径,Pushd将创建一个指向指定网络资源的临时驱动器号,然后再用刚定义的驱动器号改变当前的驱动器和目录。 If you specify a network path, Pushd will create a temporary network resource to the specified drive letter, then use the newly defined drive letter to change the current drive and directory. 可以从Z:往下分配临时驱动器号,使用找到的第一个没有用过的驱动器号。 From the Z: drive down the number of temporary assignment, the first use to find an unused drive letter.
Popd:命令选项到保存在Pushd命令里的目录。 Popd: command option to save the Pushd command in the directory.
如果命令扩展名被启用,从推目录堆栈Popd驱动器时,Popd命令会删除Pushd创建的临时驱动器号。 If Command Extensions are enabled, the directory stack from pushing Popd drive, Popd command will delete Pushd temporary drive letter created.
SetLocal:开始批处理文件中环境改动的本地化操作。 SetLocal: start a batch file environment changes localize operations. 在执行SetLocal之后所做的环境改动只限于批处理文件。 Made after the implementation of the environmental changes SetLocal only batch file. 要还原原先的设置,必须执行EndLocal。 To restore the original settings, you must perform EndLocal. 达到批处理文件结尾时,对于该批处理文件的每个尚未执行的SetLocal命令,都会有一个隐含的EndLocal被执行。 Reached the end of the batch file when the batch file for each command not implemented SetLocal, there is an implicit EndLocal will be executed.
Assoc:显示或修改文件扩展名关联用法:Assoc [.ext[=[fileType]]] Assoc: Displays or modifies file extension associations use: Assoc [. Ext [= [fileType]]]
其中.ext指定跟文件类型关联的文件扩展名,FileType 指定跟文件扩展名关联的文件类型。 Them. Ext file type associated with the specified file extension, FileType specified file extension associated with file types. 键入Assoc而不带参数,显示当前文件关联。 Type Assoc without parameters, displays the current file associations. 如果只用文件扩展名调用Assoc,则显示那个文件扩展名的当前文件关联。 If only the file extension called Assoc, showed that the file extension of the current file associations. 如果不为文件类型指定任何参数,命令会删除文件扩展名的关联。 If you do not specify any parameters for the file type, the command will delete the file extension association.
例如: For example:
Assoc .pl=PerlScript Assoc. Pl = PerlScript
Ftype PerlScript=perl.exe %1 %* Ftype PerlScript = perl.exe% 1% *
允许你启用以下Perl脚本: Perl script allows you to enable the following:
script.pl 1 2 3 script.pl 1 2 3
如果不想键入扩展名,则键入以下字符串: If you do not want to type the extension, type the following string:
set PATHEXT=.pl;%PATHEXT% set PATHEXT =. pl;% PATHEXT%
被启动的脚本如下: The script is started as follows:
script 1 2 3 script 1 2 3
7.Cmd.exe更加复杂、强大的命令行参数 7.Cmd.exe more complex and powerful command-line arguments
Cmd.exe有很多命令行参数,具体情况如下: There are many Cmd.exe command-line parameters, as follows:
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [ CMD [/ A | / U] [/ Q] [/ D] [/ E: ON | / E: OFF] [/ F: ON | / F: OFF] [/ V: ON | / V: OFF] [
[/S] [/C | /K] string] [/ S] [/ C | / K] string]
/C 执行字符串指定的命令然后中断; / C command specified by string and then execute the interrupt;
/K 执行字符串指定的命令但保留; / K command specified by string but the implementation of reservation;
/S 在/C 或/K 后修改字符串处理; / S / C or / K modify the string after processing;
/Q 关闭回应; / Q Turns echo;
/D 从注册表中停用执行AutoRun命令; / D Disable execution of AutoRun from Registry command;
/A 使向内部管道或文件命令的输出成为ANSI; / A so that the internal pipe or file to the command output as ANSI;
/U 使向内部管道或文件命令的输出成为Unicode / U the internal pipe or file to the command output as Unicode
/T:fg 设置前景/背景颜色(详细信息,请见Color /?); / T: fg Sets the foreground / background color (for details, see Color /?);
/E:ON 启用命令扩展; / E: ON Enable command extensions;
/E:OFF 停用命令扩展; / E: OFF Disable command extensions;
/F:ON 启用文件和目录名称完成字符; / F: ON Enable file and directory name completion characters;
/F:OFF 停用文件和目录名称完成字符; / F: OFF Disable file and directory name completion characters;
/V:ON 将c作为定界符启动延缓环境变量扩展。 / V: ON to c as the delimiter delayed environment variable expansion starts.
/V:OFF 停用延缓的环境扩展。 / V: OFF Disable delayed environment expansion.
请注意,如果字符串有引号,可以接受用命令分隔符“&&”隔开的多个命令。 Note that if a quoted string, you can accept the command separator '& & "to separate multiple commands. 并且,由于兼容原因,/X与/E:ON相同,/Y与/E:OFF相同,并且/R与/C相同。 Also, for compatibility reasons, / X and / E: ON the same, / Y and / E: OFF the same, and / R / C the same. 忽略任何其它命令选项。 Ignores any other command options. 如果指定了/C或/K,命令选项后的命令行其余部分将作为命令行处理,在这种情况下,会使用下列逻辑处理引号字符("): If you specify the / C or / K, the command option after the rest of the command line as a command-line processing, in this case, the following logic is used to process quote (") characters:
(1)如果符合下列所有条件,那么在命令行上的引号字符将被保留: (1) all the following conditions are met, then quote characters on the command line are preserved:
不带/S 命令选项; Without the / S command option;
整整两个引号字符; Exactly two quote characters;
在两个引号字符之间没有特殊字符,特殊字符为下列中的一个: <>()@^|; Between the two quote characters without special characters, special characters, for the following one: <>()@^|;
在两个引号字符之间有至少一个空白字符; Between the two quote characters have at least one blank character;
在两个引号字符之间有至少一个可执行文件的名称。 Between the two quote characters have at least one executable file name.
(2)否则,老办法是,看第一个字符是否是一个引号字符,如果是,舍去开头的字符并删除命令行上的最后一个引号字符,保留最后一个引号字符之后的文字。 (2) Otherwise, the old way is to see if the first character is a quote character, and if so, strip the leading character on the command line and remove the last quote character, retain the last quote character after the text. 如果/D未在命令行上被指定,当CMD.EXE开始时,它会寻找以下REG_SZ/REG_EXPAND_SZ注册表变量。 If / D was not specified on the command line, then when CMD.EXE starts, it will look for the following REG_SZ / REG_EXPAND_SZ registry variables. 如果其中一个或两个都存在,这两个变量会先被执行。 If one or both are present, these two variables will first be executed.
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ AutoRun
和 And
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor \ AutoRun
命令扩展按默认值是启用的。 Command extensions are enabled by default. 你也可以使用/E:OFF,为某一特定调用而停用扩展。 You can also use the / E: OFF, to disable extensions for a particular call. 你可以在用户登录会话上启用或停用cmd.exe所有调用的扩展,这要通过设置使用Regedit32.exe的注册表中的一个或两个REG_DWORD值: User logon session you can enable or disable extensions for all invocations cmd.exe, which use Regedit32.exe to the registry by setting one or two REG_DWORD values:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\EnableExtensions HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ EnableExtensions
和 And
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions到0x1或0x0。 HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor \ EnableExtensions to 0x1 or 0x0. 用户特定设置比机器设置有优先权。 The user specific setting takes precedence over the machine setting. 命令行命令选项比注册表设置有优先权。 The command line options have precedence over the registry settings.
命令行扩展包括对下列命令所做的更改和添加: Command line expansion includes the following changes and additions made to order:
Del 或Erase、Color、CD或ChDir、MD或MkDir、Prompt、Pushd、Popd、Set、SetLocal、EndLocal、 IF、For、Call、Shift、Goto、Start(同时包括对外部命令调用所做的更改)、Assoc、Ftype。 Del or Erase, Color, CD or ChDir, MD or MkDir, Prompt, Pushd, Popd, Set, SetLocal, EndLocal, IF, For, Call, Shift, Goto, Start (also includes changes to external command invocation), Assoc, Ftype.
有关详细信息,请键入“HELP 命令名”。 For more information, type "HELP command name."
延迟变量环境扩展不按默认值启用。 Delayed environment variable expansion is not enabled by default. 你可以用/V:ON或/V:OFF命令选项,为CMD.EXE的某个调用而启用或停用延迟环境变量扩充。 You can use the / V: ON or / V: OFF command options, for a particular invocation of CMD.EXE to enable or disable delayed environment variable expansion. 你可以在机器上或用户登录会话上启用或停用CMD.EXE所有调用的完成,这要通过设置使用Regedit32.exe的注册表中的一个或两个REG_DWORD 值: You can machine or user logon session to enable or disable completion for all invocations of CMD.EXE, which use Regedit32.exe to the registry by setting one or two REG_DWORD values:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ DelayedExpansion
和 And
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion到0x1或0x0。 HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor \ DelayedExpansion to 0x1 or 0x0. 用户特定设置比机器设置有优先权。 The user specific setting takes precedence over the machine setting. 命令行命令选项比注册表设置有优先权。 The command line options have precedence over the registry settings.
如果延迟环境变量扩充被启用,惊叹号字符可在执行时间,被用来代替一个环境变量的数值。 If delayed environment variable expansion is enabled, then the exclamation character can be in execution time, are used instead of an environment variable value.
文件和目录名完成不按默认值启用。 File and directory name completion is not enabled by default. 你可以用/F:ON或/F:OFF命令选项,为cmd.exe的某个调用而启用或停用文件名完成。 You can use the / F: ON or / F: OFF command options, a call to cmd.exe and enable or disable file name completion. 你可以在机器上或用户登录会话上启用或停用cmd.exe所有调用的完成,这要通过设置使用Regedit32.exe 的注册表中的一个或两个REG_DWORD值: You can machine or user logon session to enable or disable completion for all invocations cmd.exe, which use Regedit32.exe to the registry by setting one or two REG_DWORD values:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\CompletionChar HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ CompletionChar
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\PathCompletionChar HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Processor \ PathCompletionChar
和 And
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\CompletionChar HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor \ CompletionChar
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\PathCompletionChar HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor \ PathCompletionChar
由一个控制字符的十六进制值作为一个特定参数(例如,0x4是Ctrl-D,0x6是Ctrl-F)。 By a control-character hexadecimal value as a specific parameter (for example, 0x4 is Ctrl-D, 0x6 is Ctrl-F).
用户特定设置优先于机器设置。 User specific settings take precedence over the machine settings. 命令行命令选项优先于注册表设置。 The command line option takes precedence over registry settings.
如果完成是用/F:ON命令选项启用的,两个要使用的控制符是:目录名字完成用Ctrl-D,文件名完成用Ctrl-F。 If done with / F: ON Enable command options, the two control characters to be used are: directory name completion using Ctrl-D, file name completion using Ctrl-F. 要停用注册表中的某个字符,请用空格(0x20)的数值,因为此字符不是控制字符。 To disable the registry of a character, with a space (0x20) value, because this character is not a control character.
如果键入两个控制字符中的一个,完成会被调用。 If you type two control characters in a complete will be called. 完成功能将路径字符长带到光标的左边,如果没有通配符,将通配符附加到左边,并建立相符的路径列表。 Completion characters long the path to the left of the cursor, if there is no wildcard, the wildcard is attached to the left, and the establishment of a list of matching paths. 然后,显示第一个相符的路径。 Then, display the first matching path. 如果没有相符的路径,则发出嘟嘟声,不影响显示。 If there is no matching path, then beeps, does not affect the display. 之后,重复按同一个控制字符会循环显示相符路径的列表。 After repeatedly pressing the same control character will cycle through a list of matching paths. 将Shift 键跟控制字符同时按下,会倒着显示列表。 With the Shift key while pressing the control characters will display the list backwards. 如果对该行进行了任何编辑,并再次按下控制字符,保存的相符路径的列表会被丢弃,新的会被生成。 If any editing of the line, and press the control character again, save the list of matching paths is discarded and a new will be generated. 如果在文件和目录名完成之间命令选项,会发生同样现象。 If the file and directory name completion option between commands, the same phenomenon will occur. 两个控制字符之间的唯一区别是文件完成字符符合文件和目录名,而目录完成字符只符合目录名。 Between the two control characters only difference is the file completion character in line with the file and directory names, while the directory completion character only matches directory names. 如果文件完成被用于内置式目录命令(CD、MD或RD),就会使用目录完成。 If the file is used to complete the built-in directory commands (CD, MD or RD), will use the directory to complete. 将引号用相符路径括起来,完成代码可以正确处理含有空格或其它特殊字符的文件名。 Will match the path with quotation marks enclose the complete code can properly handle spaces or other special characters in file names. 同时,如果备份,然后从行内调用文件完成,完成被调用是位于光标右方的文字会被丢弃。 Also, if the backup, and then call the file from the line completed, the completion of the right to be called the text cursor is located will be discarded.
编者按:前边讲了这么多,主要是从原理上介绍了微软的一种命令扩展和路径扩展,至于它要完成的功能对于我们大多数电脑爱好这来说是很有趣并且是实用价值的,从小编在http://www.microsoft.com查询的资料得知,自从Windows NT 4.0以来,Windows便具有了和Linux一样的命令行自动补全的功能,不信将HKEY_LOCAL_MACHINE\Software \Microsoft\ Command Prosessor\CompletionChar的键值改为9,然后切换到命令行窗口,输入cd c:\wind,然后按一个Tab试一下,呵呵……系统自动为你输入了cd c:\windows。 Editor's note: so much talk in front of the main principle is presented from a Microsoft command extensions and path extension, as it is to complete the function of the computer for most of us like this is very interesting and is of practical value, From the small series at http://www.microsoft.com query information that, since Windows NT 4.0 since, Windows and Linux will have the same command line auto-complete feature, do not believe in the HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Command Prosessor \ CompletionChar the key to 9, then switch to the command line window, type cd c: \ wind, and then press Tab a try, Oh ... ... system automatically as you enter cd c: \ windows.
8.一个有趣的Bug 8 An interesting Bug
在命令行(甚至在其它如Word2000等图形界面编辑器中!)调用任何一种中文输入法后,如果在全角、中文标点状态下输入一次“……”(可按 Shift+^直接从键盘输入),再输入大写的任意英文字母或按Shift键输入某些特殊符号,则每个字符后面会自动添加一个“…”号,如“W…”、 “%…”等,不知微软此举是何用意? In the command line (even if Word2000, etc. in other GUI editor!) Call any Chinese character input method, if the full-width, Chinese punctuation mode, enter a "..." (Shift + ^ can be input directly from the keyboard) , and then enter any uppercase letters or press the Shift key to enter some special characters, each character is automatically added after a "..." number, such as the "W ...", "% ..." and so on, I do not know what Microsoft's move is intention? 笔者死活想不出这种功能有何用处,只能解释为是一个无关紧要的Bug。 I can not think of life and death what is the use of this feature can only be interpreted as an insignificant Bug.
由以上可以看出,传统的DOS在Win2000时代并不是被完全抛弃,而是被发扬光大,它已经由历史上一个独当一面的操作系统转变为Win2000操作系统的有机组成部分。 As can be seen from the above, the traditional DOS era in Win2000 not been completely abandoned, but was carried forward, it has a history of endeavor by the operating system into a Win2000 operating system, an integral part. 有道是尺有所短,寸有所长,命令行与图形界面相比自有其独特魅力。 There is a saying a short foot, inch a director, command line and graphical interface compared to its own unique charm. 我们不应忘记“老DOS”,更不应忽视对命令行操作的了解和使用,许多时候,一个并不怎么复杂的操作只需用命令行就能既快又好地完成,又为什么非得要寻找(甚至是开发)一个专门的图形界面的工具呢? We should not forget the "old DOS", should not ignore the command-line operations to understand and use, in many cases, how a complex operation is not only fast and good with the command line can be done, but why do we have to find (or even develop) a dedicated graphical interface tool?
Tidak ada komentar:
Posting Komentar