cmd.exe Windows 命令处理程序 657140748874a517ac902e80faebe643

File info

File name: cmd.exe.mui
Size: 65536 byte
MD5: 657140748874a517ac902e80faebe643
SHA1: 263e8d66302878e69859c2726dc803aee050594f
SHA256: a429cfc1659188b61641e7a1e303541976fa45a232c9330b88bcef914827e69b
Operating systems: Windows 10
Extension: MUI
In x64: cmd.exe Windows 命令处理程序 (32 位)

Translations messages and strings

If an error occurred or the following message in Chinese (Simplified) language and you cannot find a solution, than check answer in English. Table below helps to know how correctly this phrase sounds in English.

id Chinese (Simplified) English
0x2328NY%0 NY%0
0x2329命令中输入了不正确的参数。 An incorrect parameter wasentered for the command.
0x232A命令语法不正确。 The syntax of the command is incorrect.
0x232B请按任意键继续. . . %0 Press any key to continue . . . %0
0x232C%1,要删除(Y/N)吗? %0 %1, Delete (Y/N)? %0
0x232E系统无法接受请求的路径或文件名。 The system cannot accept the pathor file name requested.
0x232F系统无法接受输入的日期。 The system cannot accept the date entered.
0x2330没有为 GOTO 命令指定批处理标签。 No batch label specified to GOTO command.
0x2331'%1' 不是内部或外部命令,也不是可运行的程序或批处理文件。 '%1' is not recognized as an internal or external command,operable program or batch file.
0x2332系统无法接受输入的时间。 The system cannot accept the time entered.
0x2335^C ^C
0x2336已复制 %1 个文件。 %1 file(s) copied.
0x2337当前日期: %0 The current date is: %0
0x2338当前时间: %0 The current time is: %0
0x2339%1 的目录 Directory of %1
0x233A系统环境空间不足。 The system is out of environment space.
0x233C系统无法执行指定的程序。 The system cannot execute the specified program.
0x233F输入行太长。 The input line is too long.
0x2340目标文件的内容已丢失。 The contents of the target filewere lost.
0x2341请插入包含批处理文件的软盘,然后按任意键。%0 Insert the diskette that contains the batch fileand press any key when ready. %0
0x2342输入新日期: (mm-dd-yy) %0 Enter the new date: (mm-dd-yy) %0
0x2343输入新时间: %0 Enter the new time: %0
0x2344重定向句柄 %1 时,无法复制此句柄。 The handle could not be duplicatedduring redirection of handle %1.
0x2345ECHO 处于关闭状态。 ECHO is off.
0x2346ECHO 处于打开状态。 ECHO is on.
0x2347VERIFY 处于关闭状态。 VERIFY is off.
0x2348VERIFY 处于打开状态。 VERIFY is on.
0x2349文件无法自身复制。 The file cannot be copied onto itself.
0x234A此时不应有 %1。 %1 was unexpected at this time.
0x234C过程识别号是 %1。 The Process Identification Number is %1.
0x234D存在一个重名文件,或是找不到文件。 A duplicate file name exists, or the filecannot be found.
0x234E%1, 是否确认(Y/N)? %0 %1, Are you sure (Y/N)? %0
0x234F下列字符串太长:%1 The following character string is too long:%1
0x2350Microsoft Windows [版本 %1]%0 Microsoft Windows [Version %1]%0
0x2351管道操作中无法复制句柄。 The handle could not be duplicated duringa pipe operation.
0x2352More? %0 More? %0
0x2353系统无法完成此过程。 The system cannot complete the process.
0x2354%1 %1
0x235B卷的序列号是 %1 Volume Serial Number is %1
0x235C子目录或文件 %1 已经存在。 A subdirectory or file %1 already exists.
0x235D处理: %1 时出错。 Error occurred while processing: %1.
0x235E驱动器 %1 中的卷没有标签。 Volume in drive %1 has no label.
0x235F驱动器 %1 中的卷是 %2 Volume in drive %1 is %2
0x2360KEYS 处于打开状态。 KEYS is on.
0x2361KEYS 处于关闭状态。 KEYS is off.
0x2362系统无法接受 START 命令参数 %1。 The system cannot accept the START command parameter %1.
0x2363系统找不到文件 %1。 The system cannot find the file %1.
0x2364过程试图写入的管道不存在。 The process tried to write to a nonexistent pipe.
0x236B\"%1\" 是无法识别的设备。 \"%1\" is not a recognized device.
0x236C找不到批处理文件。 The batch file cannot be found.
0x236D移动了 %1 个目录。 %1 dir(s) moved.
0x236E移动了 %1 个文件。 %1 file(s) moved.
0x236F程序试图引用堆栈段限度之外的存储。程序已结束。%1 A program attempted to reference storage outside thelimits of a stack segment. The program was ended.%1
0x2371%1%0 %1%0
0x2372尚未执行命令。 Command not implemented.
0x2373 %0 %0
0x2374内存不足。 Out of memory.
0x2375无效开关 - \"%1\"。 Invalid switch - \"%1\".
0x2376参数格式不正确 - \"%1\"。 Parameter format not correct - \"%1\".
0x2377(环境变量中出现错误) (Error occurred in environment variable)
0x2378%1 个文件 %2 字节 %1 File(s) %2 bytes
0x2379%1 个目录 %2 可用字节 %1 Dir(s) %2 bytes free
0x237A所列文件总数: Total Files Listed:
0x237B终止批处理操作吗(Y/N)? %0 Terminate batch job (Y/N)? %0
0x237C当前目录无效。 The current directory is invalid.
0x237D显示当前目录名或改变当前目录。CHDIR [/D] [drive:][path]CHDIR [..]CD [/D] [drive:][path]CD [..] .. 指定要改成父目录。键入 CD drive: 显示指定驱动器中的当前目录。不带参数只键入 CD,则显示当前驱动器和目录。使用 /D 开关,除了改变驱动器的当前目录之外,还可改变当前驱动器。 Displays the name of or changes the current directory.CHDIR [/D] [drive:][path]CHDIR [..]CD [/D] [drive:][path]CD [..] .. Specifies that you want to change to the parent directory.Type CD drive: to display the current directory in the specified drive.Type CD without parameters to display the current drive and directory.Use the /D switch to change current drive in addition to changing currentdirectory for a drive.
0x237E清除屏幕。CLS Clears the screen.CLS
0x237F将一份或多份文件复制到另一个位置。COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination [/A | /B]] source 指定要复制的文件。 /A 表示一个 ASCII 文本文件。 /B 表示一个二进位文件。 /D 允许解密要创建的目标文件 destination 为新文件指定目录和/或文件名。 /V 验证新文件写入是否正确。 /N 复制带有非 8dot3 名称的文件时, 尽可能使用短文件名。 /Y 不使用确认是否要覆盖现有目标文件 的提示。 /-Y 使用确认是否要覆盖现有目标文件 的提示。 /Z 用可重新启动模式复制已联网的文件。/L 如果源是符号链接,请将链接复制 到目标而不是源链接指向的实际文件。命令行开关 /Y 可以在 COPYCMD 环境变量中预先设定。这可能会被命令行上的 /-Y 替代。除非 COPY命令是在一个批处理脚本中执行的,默认值应为在覆盖时进行提示。要附加文件,请为目标指定一个文件,为源指定数个文件(用通配符或 file1+file2+file3 格式)。 Copies one or more files to another location.COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination [/A | /B]] source Specifies the file or files to be copied. /A Indicates an ASCII text file. /B Indicates a binary file. /D Allow the destination file to be created decrypted destination Specifies the directory and/or filename for the new file(s). /V Verifies that new files are written correctly. /N Uses short filename, if available, when copying a file with a non-8dot3 name. /Y Suppresses prompting to confirm you want to overwrite an existing destination file. /-Y Causes prompting to confirm you want to overwrite an existing destination file. /Z Copies networked files in restartable mode. /L If the source is a symbolic link, copy the link to the target instead of the actual file the source link points to.The switch /Y may be preset in the COPYCMD environment variable.This may be overridden with /-Y on the command line. Default isto prompt on overwrites unless COPY command is being executed fromwithin a batch script.To append files, specify a single file for destination, but multiple filesfor source (using wildcards or file1+file2+file3 format).
0x2380显示或设置日期。DATE [/T | date]显示当前日期设置和输入新日期的提示,请键入不带参数的 DATE。要保留现有日期,请按 Enter。 Displays or sets the date.DATE [/T | date]Type DATE without parameters to display the current date setting anda prompt for a new one. Press ENTER to keep the same date.
0x2381删除一个或数个文件。DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] namesERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names names 指定一个或多个文件或者目录列表。 通配符可用来删除多个文件。 如果指定了一个目录,该目录中的所 有文件都会被删除。 /P 删除每一个文件之前提示确认。 /F 强制删除只读文件。 /S 删除所有子目录中的指定的文件。 /Q 安静模式。删除全局通配符时,不要求确认 /A 根据属性选择要删除的文件 属性 R 只读文件 S 系统文件 H 隐藏文件 A 存档文件 I 无内容索引文件 L 重分析点 - 表示“否”的前缀 Deletes one or more files.DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] namesERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names names Specifies a list of one or more files or directories. Wildcards may be used to delete multiple files. If a directory is specified, all files within the directory will be deleted. /P Prompts for confirmation before deleting each file. /F Force deleting of read-only files. /S Delete specified files from all subdirectories. /Q Quiet mode, do not ask if ok to delete on global wildcard /A Selects files to delete based on attributes attributes R Read-only files S System files H Hidden files A Files ready for archiving I Not content indexed Files L Reparse Points - Prefix meaning not
0x2382显示目录中的文件和子目录列表。DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4] [drive:][path][filename] 指定要列出的驱动器、目录和/或文件。 /A 显示具有指定属性的文件。 属性 D 目录 R 只读文件 H 隐藏文件 A 准备存档的文件 S 系统文件 I 无内容索引文件 L 解析点 - 表示“否”的前缀 /B 使用空格式(没有标题信息或摘要)。 /C 在文件大小中显示千位数分隔符。这是默认值。用 /-C 来 禁用分隔符显示。 /D 跟宽式相同,但文件是按栏分类列出的。 /L 用小写。 /N 新的长列表格式,其中文件名在最右边。 /O 用分类顺序列出文件。 排列顺序 N 按名称(字母顺序) S 按大小(从小到大) E 按扩展名(字母顺序) D 按日期/时间(从先到后) G 组目录优先 - 反转顺序的前缀 /P 在每个信息屏幕后暂停。 /Q 显示文件所有者。 /R 显示文件的备用数据流。 /S 显示指定目录和所有子目录中的文件。 /T 控制显示或用来分类的时间字符域。 时间段 C 创建时间 A 上次访问时间 W 上次写入的时间 /W 用宽列表格式。 /X 显示为非 8.3 文件名产生的短名称。格式是 /N 的格式, 短名称插在长名称前面。如果没有短名称,在其位置则 显示空白。 /4 用四位数字显示年可以在 DIRCMD 环境变量中预先设定开关。通过添加前缀 - (破折号)来替代预先设定的开关。例如,/-W。 Displays a list of files and subdirectories in a directory.DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4] [drive:][path][filename] Specifies drive, directory, and/or files to list. /A Displays files with specified attributes. attributes D Directories R Read-only files H Hidden files A Files ready for archiving S System files I Not content indexed files L Reparse Points - Prefix meaning not /B Uses bare format (no heading information or summary). /C Display the thousand separator in file sizes. This is the default. Use /-C to disable display of separator. /D Same as wide but files are list sorted by column. /L Uses lowercase. /N New long list format where filenames are on the far right. /O List by files in sorted order. sortorder N By name (alphabetic) S By size (smallest first) E By extension (alphabetic) D By date/time (oldest first) G Group directories first - Prefix to reverse order /P Pauses after each screenful of information. /Q Display the owner of the file. /R Display alternate data streams of the file. /S Displays files in specified directory and all subdirectories. /T Controls which time field displayed or used for sorting timefield C Creation A Last Access W Last Written /W Uses wide list format. /X This displays the short names generated for non-8dot3 file names. The format is that of /N with the short name inserted before the long name. If no short name is present, blanks are displayed in its place. /4 Displays four-digit yearsSwitches may be preset in the DIRCMD environment variable. Overridepreset switches by prefixing any switch with - (hyphen)--for example, /-W.
0x2383退出 CMD.EXE 程序(命令解释器)或当前批处理脚本。EXIT [/B] [exitCode] /B 指定要退出当前批处理脚本而不是 CMD.EXE。如果从一个 批处理脚本外执行,则会退出 CMD.EXE exitCode 指定一个数字号码。如果指定了 /B,将 ERRORLEVEL 设成那个数字。如果退出 CMD.EXE,则用那个数字设置 过程退出代码。 Quits the CMD.EXE program (command interpreter) or the current batchscript.EXIT [/B] [exitCode] /B specifies to exit the current batch script instead of CMD.EXE. If executed from outside a batch script, it will quit CMD.EXE exitCode specifies a numeric number. if /B is specified, sets ERRORLEVEL that number. If quitting CMD.EXE, sets the process exit code with that number.
0x2384创建目录。MKDIR [drive:]pathMD [drive:]path Creates a directory.MKDIR [drive:]pathMD [drive:]path
0x2385为可执行文件显示或设置一个搜索路径。PATH [[drive:]path[;...][;%%PATH%%]PATH ;键入 PATH ; 清除所有搜索路径设置并指示 cmd.exe 只在当前目录中搜索。键入 PATH 但不加参数,显示当前路径。将 %%PATH%% 包括在新的路径设置中会将旧路径附加到新设置。 Displays or sets a search path for executable files.PATH [[drive:]path[;...][;%%PATH%%]PATH ;Type PATH ; to clear all search-path settings and direct cmd.exe to searchonly in the current directory.Type PATH without parameters to display the current path.Including %%PATH%% in the new path setting causes the old path to beappended to the new setting.
0x2386更改 cmd.exe 命令提示符。PROMPT [text] text 指定新的命令提示符。提示符可以由普通字符及下列特殊代码组成: $A & (与号) $B | (坚线) $C ( (左括号) $D 当前日期 $E 转义码(ASCII 码 27) $F ) (右括号) $G (大于号) $H Backspace (删除前一个字符) $L Changes the cmd.exe command prompt.PROMPT [text] text Specifies a new command prompt.Prompt can be made up of normal characters and the following special codes: $A & (Ampersand) $B | (pipe) $C ( (Left parenthesis) $D Current date $E Escape code (ASCII code 27) $F ) (Right parenthesis) $G (greater-than sign) $H Backspace (erases previous character) $L
0x2387删除一个目录。RMDIR [/S] [/Q] [drive:]pathRD [/S] [/Q] [drive:]path /S 除目录本身外,还将删除指定目录下的所有子目录和 文件。用于删除目录树。 /Q 安静模式,带 /S 删除目录树时不要求确认 Removes (deletes) a directory.RMDIR [/S] [/Q] [drive:]pathRD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q Quiet mode, do not ask if ok to remove a directory tree with /S
0x2388重命名文件。RENAME [drive:][path]filename1 filename2.REN [drive:][path]filename1 filename2.请注意,你不能为目标文件指定新的驱动器或路径。 Renames a file or files.RENAME [drive:][path]filename1 filename2.REN [drive:][path]filename1 filename2.Note that you cannot specify a new drive or path for your destination file.
0x2389显示、设置或删除 cmd.exe 环境变量。SET [variable=[string]] variable 指定环境变量名。 string 指定要指派给变量的一系列字符串。要显示当前环境变量,键入不带参数的 SET。 Displays, sets, or removes cmd.exe environment variables.SET [variable=[string]] variable Specifies the environment-variable name. string Specifies a series of characters to assign to the variable.Type SET without parameters to display the current environment variables.
0x238A显示或设置系统时间。TIME [/T | time]显示当前时间设置和输入新时间的提示,请键入不带参数的 TIME。要保留现有时间,请按 Enter。 Displays or sets the system time.TIME [/T | time]Type TIME with no parameters to display the current time setting and a promptfor a new one. Press ENTER to keep the same time.
0x238B显示文本文件的内容。TYPE [drive:][path]filename Displays the contents of a text file or files.TYPE [drive:][path]filename
0x238C显示 Windows 版本。VER Displays the Windows version.VER
0x238D指示 cmd.exe 是否要验证文件是否已正确地写入磁盘。 VERIFY [ON | OFF]要显示当前 VERIFY 设置,键入不带参数的 VERIFY。 Tells cmd.exe whether to verify that your files are written correctly to adisk.VERIFY [ON | OFF]Type VERIFY without a parameter to display the current VERIFY setting.
0x238E显示磁盘卷标和序列号(如果存在)。VOL [drive:] Displays the disk volume label and serial number, if they exist.VOL [drive:]
0x238F从批处理程序调用另一个批处理程序。CALL [drive:][path]filename [batch-parameters] batch-parameters 指定批处理程序所需的命令行信息。 Calls one batch program from another.CALL [drive:][path]filename [batch-parameters] batch-parameters Specifies any command-line information required by the batch program.
0x2390在批处理文件或 CONFIG.SYS 里加上注解或说明。REM [comment] Records comments (remarks) in a batch file or CONFIG.SYS.REM [comment]
0x2391暂停批处理程序,并显示以下消息: 请按任意键继续. . . %0PAUSE Suspends processing of a batch program and displays the message Press any key to continue . . . %0PAUSE
0x2392显示消息,或者启用或关闭命令回显。 ECHO [ON | OFF] ECHO [message]若要显示当前回显设置,请键入不带参数的 ECHO。 Displays messages, or turns command-echoing on or off. ECHO [ON | OFF] ECHO [message]Type ECHO without parameters to display the current echo setting.
0x2393将 cmd.exe 定向到批处理程序中带标签的行。GOTO label label 指定批处理程序中用作标签的文字字符串。标签必须单独一行,并且以冒号打头。 Directs cmd.exe to a labeled line in a batch program.GOTO label label Specifies a text string used in the batch program as a label.You type a label on a line by itself, beginning with a colon.
0x2394更改批处理文件中可替换参数的位置。SHIFT [/n] Changes the position of replaceable parameters in a batch file.SHIFT [/n]
0x2395执行批处理程序中的条件处理。IF [NOT] ERRORLEVEL number commandIF [NOT] string1==string2 commandIF [NOT] EXIST filename command NOT 指定只有条件为 false 的情况下,Windows 才 应该执行该命令。 ERRORLEVEL number 如果最后运行的程序返回一个等于或大于 指定数字的退出代码,指定条件为 true。 string1==string2 如果指定的文字字符串匹配,指定条件为 true。 EXIST filename 如果指定的文件名存在,指定条件为 true。 command 如果符合条件,指定要执行的命令。如果指定的 条件为 FALSE,命令后可跟 ELSE 命令,该命令将 在 ELSE 关键字之后执行该命令。ELSE 子句必须出现在同一行上的 IF 之后。例如: IF EXIST filename. ( del filename. ) ELSE ( echo filename. missing. )由于 del 命令需要用新的一行终止,因此以下子句不会有效:IF EXIST filename. del filename. ELSE echo filename. missing由于 ELSE 命令必须与 IF 命令的尾端在同一行上,以下子句也不会有效: IF EXIST filename. del filename. ELSE echo filename. missing如果都放在同一行上,以下子句有效: IF EXIST filename. (del filename.) ELSE echo filename. missing Performs conditional processing in batch programs.IF [NOT] ERRORLEVEL number commandIF [NOT] string1==string2 commandIF [NOT] EXIST filename command NOT Specifies that Windows should carry out the command only if the condition is false. ERRORLEVEL number Specifies a true condition if the last program run returned an exit code equal to or greater than the number specified. string1==string2 Specifies a true condition if the specified text strings match. EXIST filename Specifies a true condition if the specified filename exists. command Specifies the command to carry out if the condition is met. Command can be followed by ELSE command which will execute the command after the ELSE keyword if the specified condition is FALSEThe ELSE clause must occur on the same line as the command after the IF. Forexample: IF EXIST filename. ( del filename. ) ELSE ( echo filename. missing. )The following would NOT work because the del command needs to be terminatedby a newline: IF EXIST filename. del filename. ELSE echo filename. missingNor would the following work, since the ELSE command must be on the same lineas the end of the IF command: IF EXIST filename. del filename. ELSE echo filename. missingThe following would work if you want it all on one line: IF EXIST filename. (del filename.) ELSE echo filename. missing
0x2396对一组文件中的每一个文件执行某个特定命令。FOR %%variable IN (set) DO command [command-parameters] %%variable 指定一个单一字母可替换的参数。 (set) 指定一个或一组文件。可以使用通配符。 command 指定对每个文件执行的命令。 command-parameters 为特定命令指定参数或命令行开关。在批处理程序中使用 FOR 命令时,指定变量请使用 %%%%variable 而不要用 %%variable。变量名称是区分大小写的,所以 %%i 不同于 %%I. Runs a specified command for each file in a set of files.FOR %%variable IN (set) DO command [command-parameters] %%variable Specifies a single letter replaceable parameter. (set) Specifies a set of one or more files. Wildcards may be used. command Specifies the command to carry out for each file. command-parameters Specifies parameters or switches for the specified command.To use the FOR command in a batch program, specify %%%%variable insteadof %%variable. Variable names are case sensitive, so %%i is differentfrom %%I.
0x40002397启动一个单独的窗口以运行指定的程序或命令。START [\"title\"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/NODE ] [/AFFINITY ] [/WAIT] [/B] [command/program] [parameters] \"title\" 在窗口标题栏中显示的标题。 path 启动目录。 B 启动应用程序,但不创建新窗口。 应用程序已忽略 ^C 处理。除非应用程序 启用 ^C 处理,否则 ^Break 是唯一可以中断 该应用程序的方式。 I 新的环境将是传递 给 cmd.exe 的原始环境,而不是当前环境。 MIN 以最小化方式启动窗口。 MAX 以最大化方式启动窗口。 SEPARATE 在单独的内存空间中启动 16 位 Windows 程序。 SHARED 在共享内存空间中启动 16 位 Windows 程序。 LOW 在 IDLE 优先级类中启动应用程序。 NORMAL 在 NORMAL 优先级类中启动应用程序。 HIGH 在 HIGH 优先级类中启动应用程序。 REALTIME 在 REALTIME 优先级类中启动应用程序。 ABOVENORMAL 在 ABOVENORMAL 优先级类中启动应用程序。 BELOWNORMAL 在 BELOWNORMAL 优先级类中启动应用程序。 NODE 将首选非一致性内存结构(NUMA)节点指定为 十进制整数。 AFFINITY 将处理器关联掩码指定为十六进制数字。 进程被限制在这些处理器上运行。 将 /AFFINITY 和 /NODE 结合使用时,会对关联掩码 进行不同的解释。指定关联掩码,以便将零位作为起始位置(就如将 NUMA 节点的处理器掩码向右移位一样)。 进程被限制在指定关联掩码和 NUMA 节点之间的 那些通用处理器上运行。 如果没有通用处理器,则进程被限制在 指定的 NUMA 节点上运行。 WAIT 启动应用程序并等待它终止。 command/program 如果它是内部 cmd 命令或批文件,则 该命令处理器是使用 cmd.exe 的 /K 开关运行的。 这表示运行该命令之后,该窗口 将仍然存在。 如果它不是内部 cmd 命令或批文件,则 它就是一个程序,并将作为一个窗口化应用程序或 控制台应用程序运行。 parameters 这些是传递给 command/program 的参数。注意: 在 64 位平台上不支持 SEPARATE 和 SHARED 选项。通过指定 /NODE,可按照利用 NUMA 系统中的内存区域的方式创建进程。例如,可以创建两个完全通过共享内存互相通信的进程以共享相同的首选 NUMA 节点,从而最大限度地减少内存延迟。只要有可能,它们就会分配来自相同 NUMA 节点的内存,并且会在指定节点之外的处理器上自由运行。 start /NODE 1 application1.exe start /NODE 1 application2.exe这两个进程可被进一步限制在相同 NUMA 节点内的指定处理器上运行。在以下示例中,application1 在节点的两个低位处理器上运行,而 application2在该节点的其后两个处理器上运行。该示例假定指定节点至少具有四个逻辑处理器。请注意,节点号可更改为该计算机的任何有效节点号,而无需更改关联掩码。 start /NODE 1 /AFFINITY 0x3 application1.exe 启动 /NODE 1 /AFFINITY 0xc application2.exe Starts a separate window to run a specified program or command.START [\"title\"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/NODE ] [/AFFINITY ] [/WAIT] [/B] [command/program] [parameters] \"title\" Title to display in window title bar. path Starting directory. B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application. I The new environment will be the original environment passed to the cmd.exe and not the current environment. MIN Start window minimized. MAX Start window maximized. SEPARATE Start 16-bit Windows program in separate memory space. SHARED Start 16-bit Windows program in shared memory space. LOW Start application in the IDLE priority class. NORMAL Start application in the NORMAL priority class. HIGH Start application in the HIGH priority class. REALTIME Start application in the REALTIME priority class. ABOVENORMAL Start application in the ABOVENORMAL priority class. BELOWNORMAL Start application in the BELOWNORMAL priority class. NODE Specifies the preferred Non-Uniform Memory Architecture (NUMA) node as a decimal integer. AFFINITY Specifies the processor affinity mask as a hexadecimal number. The process is restricted to running on these processors. The affinity mask is interpreted differently when /AFFINITY and /NODE are combined. Specify the affinity mask as if the NUMA node's processor mask is right shifted to begin at bit zero. The process is restricted to running on those processors in common between the specified affinity mask and the NUMA node. If no processors are in common, the process is restricted to running on the specified NUMA node. WAIT Start application and wait for it to terminate. command/program If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run. If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application. parameters These are the parameters passed to the command/program.NOTE: The SEPARATE and SHARED options are not supported on 64-bit platforms.Specifying /NODE allows processes to be created in a way that leverages memorylocality on NUMA systems. For example, two processes that communicate witheach other heavily through shared memory can be created to share the samepreferred NUMA node in order to minimize memory latencies. They allocatememory from the same NUMA node when possible, and they are free to run onprocessors outside the specified node. start /NODE 1 application1.exe start /NODE 1 application2.exeThese two processes can be further constrained to run on specific processorswithin the same NUMA node. In the following example, application1 runs on thelow-order two processors of the node, while application2 runs on the next twoprocessors of the node. This example assumes the specified node has at leastfour logical processors. Note that the node number can be changed to any validnode number for that computer without having to change the affinity mask. start /NODE 1 /AFFINITY 0x3 application1.exe start /NODE 1 /AFFINITY 0xc application2.exe
0x40002398设置或清除 DOS 系统的扩展 CTRL+C 检测这个命令是为了与 DOS 系统的兼容而保留的,在 Windows 里不起作用。 Sets or Clears Extended CTRL+C checking on DOS systemThis is present for Compatibility with DOS systems. It has no effectunder Windows.
0x40002399启动 Windows 命令解释器的一个新实例CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] string]/C 执行字符串指定的命令然后终止/K 执行字符串指定的命令但保留/S 修改 /C 或 /K 之后的字符串处理(见下)/Q 关闭回显/D 禁止从注册表执行 AutoRun 命令(见下)/A 使向管道或文件的内部命令输出成为 ANSI/U 使向管道或文件的内部命令输出成为 Unicode/T:fg 设置前台/背景颜色(详细信息见 COLOR /?)/E:ON 启用命令扩展(见下)/E:OFF 禁用命令扩展(见下)/F:ON 启用文件和目录名完成字符(见下)/F:OFF 禁用文件和目录名完成字符(见下)/V:ON 使用 ! 作为分隔符启用延迟的环境变量 扩展。例如,/V:ON 会允许 !var! 在执行时 扩展变量 var。%var% 语法会在输入时 扩展变量,这与在一个 FOR 循环内不同。/V:OFF 禁用延迟的环境扩展。注意,如果字符串加有引号,可以接受用命令分隔符 \"&&\"分隔多个命令。另外,由于兼容性原因,/X 与 /E:ON 相同,/Y 与 /E:OFF 相同,且 /R 与/C 相同。任何其他开关都将被忽略。如果指定了 /C 或 /K,则会将该开关之后的命令行的剩余部分作为一个命令行处理,其中,会使用下列逻辑处理引号(\")字符: 1. 如果符合下列所有条件,则会保留 命令行上的引号字符: - 不带 /S 开关 - 正好两个引号字符 - 在两个引号字符之间无任何特殊字符, 特殊字符指下列字符: &()@^| - 在两个引号字符之间至少有 一个空格字符 - 在两个引号字符之间的字符串是某个 可执行文件的名称。 2. 否则,老办法是看第一个字符 是否是引号字符,如果是,则去掉首字符并 删除命令行上最后一个引号,保留 最后一个引号之后的所有文本。 Starts a new instance of the Windows command interpreterCMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] string]/C Carries out the command specified by string and then terminates/K Carries out the command specified by string but remains/S Modifies the treatment of string after /C or /K (see below)/Q Turns echo off/D Disable execution of AutoRun commands from registry (see below)/A Causes the output of internal commands to a pipe or file to be ANSI/U Causes the output of internal commands to a pipe or file to be Unicode/T:fg Sets the foreground/background colors (see COLOR /? for more info)/E:ON Enable command extensions (see below)/E:OFF Disable command extensions (see below)/F:ON Enable file and directory name completion characters (see below)/F:OFF Disable file and directory name completion characters (see below)/V:ON Enable delayed environment variable expansion using ! as the delimiter. For example, /V:ON would allow !var! to expand the variable var at execution time. The %var% syntax expands variables at input time, which is quite a different thing when inside of a FOR loop./V:OFF Disable delayed environment expansion.Note that multiple commands separated by the command separator '&&'are accepted for string if surrounded by quotes. Also, for compatibilityreasons, /X is the same as /E:ON, /Y is the same as /E:OFF and /R is thesame as /C. Any other switches are ignored.If /C or /K is specified, then the remainder of the command line afterthe switch is processed as a command line, where the following logic isused to process quote (\") characters: 1. If all of the following conditions are met, then quote characters on the command line are preserved: - no /S switch - exactly two quote characters - no special characters between the two quote characters, where special is one of: &()@^| - there are one or more whitespace characters between the two quote characters - the string between the two quote characters is the name of an executable file. 2. Otherwise, old behavior is to see if the first character is a quote character and if so, strip the leading character and remove the last quote character on the command line, preserving any text after the last quote character.
0x4000239A如果 /D 未在命令行上被指定,当 CMD.EXE 开始时,它会寻找以下 REG_SZ/REG_EXPAND_SZ 注册表变量。如果其中一个或两个都存在,这两个变量会先被执行。 HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\AutoRun 和/或 HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\AutoRun If /D was NOT specified on the command line, then when CMD.EXE starts, itlooks for the following REG_SZ/REG_EXPAND_SZ registry variables, and ifeither or both are present, they are executed first. HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\AutoRun and/or HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\AutoRun
0x4000239B命令扩展是按默认值启用的。你也可以使用 /E:OFF ,为某一特定调用而停用扩展。你可以在机器上和/或用户登录会话上启用或停用 CMD.EXE 所有调用的扩展,这要通过设置使用REGEDIT.EXE 的注册表中的一个或两个 REG_DWORD 值: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\EnableExtensions 和/或 HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\EnableExtensions到 0x1 或 0x0。用户特定设置比机器设置有优先权。命令行开关比注册表设置有优先权。在批处理文件中,SETLOCAL ENABLEEXTENSIONS 或 DISABLEEXTENSIONS 参数比 /E:ON 或 /E:OFF 开关有优先权。请参阅 SETLOCAL /? 获取详细信息。命令扩展包括对下列命令所做的更改和/或添加: DEL or ERASE COLOR CD or CHDIR MD or MKDIR PROMPT PUSHD POPD SET SETLOCAL ENDLOCAL IF FOR CALL SHIFT GOTO START (同时包括对外部命令调用所做的更改) ASSOC FTYPE有关特定详细信息,请键入 commandname /? 查看。 Command Extensions are enabled by default. You may also disableextensions for a particular invocation by using the /E:OFF switch. Youcan enable or disable extensions for all invocations of CMD.EXE on amachine and/or user logon session by setting either or both of thefollowing REG_DWORD values in the registry using REGEDIT.EXE: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\EnableExtensions and/or HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\EnableExtensionsto either 0x1 or 0x0. The user specific setting takes precedence overthe machine setting. The command line switches take precedence over theregistry settings.In a batch file, the SETLOCAL ENABLEEXTENSIONS or DISABLEEXTENSIONS argumentstakes precedence over the /E:ON or /E:OFF switch. See SETLOCAL /? for details.The command extensions involve changes and/or additions to the followingcommands: 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 FTYPETo get specific details, type commandname /? to view the specifics.
0x4000239C延迟环境变量扩展不按默认值启用。你可以用/V:ON 或 /V:OFF 开关,为 CMD.EXE 的某个调用而启用或停用延迟环境变量扩展。你可以在机器上和/或用户登录会话上启用或停用 CMD.EXE 所有调用的延迟扩展,这要通过设置使用 REGEDIT.EXE 的注册表中的一个或两个 REG_DWORD 值: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\DelayedExpansion 和/或 HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\DelayedExpansion到 0x1 或 0x0。用户特定设置比机器设置有优先权。命令行开关比注册表设置有优先权。在批处理文件中,SETLOCAL ENABLEDELAYEDEXPANSION 或 DISABLEDELAYEDEXPANSION参数比 /V:ON 或 /V:OFF 开关有优先权。请参阅 SETLOCAL /? 获取详细信息。如果延迟环境变量扩展被启用,惊叹号字符可在执行时间被用来代替一个环境变量的数值。 Delayed environment variable expansion is NOT enabled by default. Youcan enable or disable delayed environment variable expansion for aparticular invocation of CMD.EXE with the /V:ON or /V:OFF switch. Youcan enable or disable delayed expansion for all invocations of CMD.EXE on amachine and/or user logon session by setting either or both of thefollowing REG_DWORD values in the registry using REGEDIT.EXE: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\DelayedExpansion and/or HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\DelayedExpansionto either 0x1 or 0x0. The user specific setting takes precedence overthe machine setting. The command line switches take precedence over theregistry settings.In a batch file the SETLOCAL ENABLEDELAYEDEXPANSION or DISABLEDELAYEDEXPANSIONarguments takes precedence over the /V:ON or /V:OFF switch. See SETLOCAL /?for details.If delayed environment variable expansion is enabled, then the exclamationcharacter can be used to substitute the value of an environment variableat execution time.
0x4000239D你可以用 /F:ON 或 /F:OFF 开关为 CMD.EXE 的某个调用而启用或禁用文件名完成。你可以在计算上和/或用户登录会话上启用或禁用 CMD.EXE 所有调用的完成,这可以通过使用 REGEDIT.EXE 设置注册表中的下列 REG_DWORD 的全部或其中之一: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\CompletionChar HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\PathCompletionChar 和/或 HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\CompletionChar HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\PathCompletionChar由一个控制字符的十六进制值作为一个特定参数(例如,0x4是Ctrl-D,0x6 是 Ctrl-F)。用户特定设置优先于机器设置。命令行开关优先于注册表设置。如果完成是用 /F:ON 开关启用的,两个要使用的控制符是: 目录名完成用 Ctrl-D,文件名完成用 Ctrl-F。要停用注册表中的某个字符,请用空格(0x20)的数值,因为此字符不是控制字符。 You can enable or disable file name completion for a particularinvocation of CMD.EXE with the /F:ON or /F:OFF switch. You can enableor disable completion for all invocations of CMD.EXE on a machine and/oruser logon session by setting either or both of the following REG_DWORDvalues in the registry using REGEDIT.EXE: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\CompletionChar HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Command Processor\\PathCompletionChar and/or HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\CompletionChar HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor\\PathCompletionCharwith the hex value of a control character to use for a particularfunction (e.g. 0x4 is Ctrl-D and 0x6 is Ctrl-F). The user specificsettings take precedence over the machine settings. The command lineswitches take precedence over the registry settings.If completion is enabled with the /F:ON switch, the two controlcharacters used are Ctrl-D for directory name completion and Ctrl-F forfile name completion. To disable a particular completion character inthe registry, use the value for space (0x20) as it is not a validcontrol character.
0x4000239E如果键入两个控制字符中的一个,完成会被调用。完成功能将路径字符串带到光标的左边,如果没有通配符,将通配符附加到左边,并建立相符的路径列表。然后,显示第一个相符的路径。如果没有相符的路径,则发出嘟嘟声,不影响显示。之后,重复按同一个控制字符会循环显示相符路径的列表。将 Shift 键跟控制字符同时按下,会倒着显示列表。如果对该行进行了任何编辑,并再次按下控制字符,保存的相符路径的列表会被丢弃,新的会被生成。如果在文件和目录名完成之间切换,会发生同样现象。两个控制字符之间的唯一区别是文件完成字符符合文件和目录名,而目录完成字符只符合目录名。如果文件完成被用于内置式目录命令(CD、MD 或 RD),就会使用目录完成。用引号将相符路径括起来,完成代码可以正确处理含有空格或其他特殊字符的文件名。同时,如果备份,然后从行内调用文件完成,完成被调用时位于光标右方的文字会被调用。需要引号的特殊字符是: ()[]{}^=;!%'+,`~(&() Completion is invoked when you type either of the two controlcharacters. The completion function takes the path string to the leftof the cursor appends a wild card character to it if none is alreadypresent and builds up a list of paths that match. It then displays thefirst matching path. If no paths match, it just beeps and leaves thedisplay alone. Thereafter, repeated pressing of the same controlcharacter will cycle through the list of matching paths. Pressing theShift key with the control character will move through the listbackwards. If you edit the line in any way and press the controlcharacter again, the saved list of matching paths is discarded and a newone generated. The same occurs if you switch between file and directoryname completion. The only difference between the two control charactersis the file completion character matches both file and directory names,while the directory completion character only matches directory names.If file completion is used on any of the built in directory commands(CD, MD or RD) then directory completion is assumed.The completion code deals correctly with file names that contain spacesor other special characters by placing quotes around the matching path.Also, if you back up, then invoke completion from within a line, thetext to the right of the cursor at the point completion was invoked isdiscarded.The special characters that require quotes are: &()[]{}^=;!%'+,`~
0x4000239F启用了命令处理程序扩展 Command Processor Extensions Enabled
0x400023A0按默认值,命令处理程序扩展被启用。详细信息,请用 CMD /?。 Command Processor Extensions enabled by default. Use CMD /? for details.
0x400023A1删除文件 - %1 Deleted file - %1
0x400023A2显示或修改文件扩展名关联ASSOC [.ext[=[fileType]]] .ext 指定跟文件类型关联的文件扩展名 fileType 指定跟文件扩展名关联的文件类型键入 ASSOC 而不带参数,显示当前文件关联。如果只用文件扩展名调用 ASSOC,则显示那个文件扩展名的当前文件关联。如果不为文件类型指定任何参数,命令会删除文件扩展名的关联。 Displays or modifies file extension associationsASSOC [.ext[=[fileType]]] .ext Specifies the file extension to associate the file type with fileType Specifies the file type to associate with the file extensionType ASSOC without parameters to display the current file associations.If ASSOC is invoked with just a file extension, it displays the currentfile association for that file extension. Specify nothing for the filetype and the command will delete the association for the file extension.
0x400023A3没有为扩展名 %1 找到文件关联 File association not found for extension %1
0x400023A4显示或修改用在文件扩展名关联中的文件类型FTYPE [fileType[=[openCommandString]]] fileType 指定要检查或改变的文件类型 openCommandString 指定调用这类文件时要使用的开放式命令。键入 FTYPE 而不带参数来显示当前有定义的开放式命令字符串的文件类型。FTYPE 仅用一个文件类型启用时,它显示那个文件类型目前的开放式命令字符串。如果不为开放式命令字符串指定,FTYPE 命令将删除那个文件类型的开放式命令字符串。在一个开放式命令字符串之内,命令字符串 %%0 或 %%1 被通过关联调用的文件名所代替。%%* 得到所有的参数,%%2 得到第一个参数,%%3 得到第二个,等等。%%~n 得到其余所有以 nth 参数打头的参数;n 可以是从 2 到 9 的数字。例如: ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %%1 %%*允许你启用以下 Perl 脚本: script.pl 1 2 3如果不想键入扩展名,则键入以下字符串: set PATHEXT=.pl;%%PATHEXT%%被启动的脚本如下: script 1 2 3 Displays or modifies file types used in file extension associationsFTYPE [fileType[=[openCommandString]]] fileType Specifies the file type to examine or change openCommandString Specifies the open command to use when launching files of this type.Type FTYPE without parameters to display the current file types thathave open command strings defined. FTYPE is invoked with just a filetype, it displays the current open command string for that file type.Specify nothing for the open command string and the FTYPE command willdelete the open command string for the file type. Within an opencommand string %%0 or %%1 are substituted with the file name beinglaunched through the assocation. %%* gets all the parameters and %%2gets the 1st parameter, %%3 the second, etc. %%~n gets all the remainingparameters starting with the nth parameter, where n may be between 2 and 9,inclusive. For example: ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %%1 %%*would allow you to invoke a Perl script as follows: script.pl 1 2 3If you want to eliminate the need to type the extensions, then do thefollowing: set PATHEXT=.pl;%%PATHEXT%%and the script could be invoked as follows: script 1 2 3
0x400023A5没有找到文件类型 '%1' 或与其相关的开放式命令。 File type '%1' not found or no open command associated with it.
0x400023A6对 SETLOCAL 命令来说参数是无效的。 Invalid parameter to SETLOCAL command
0x400023A7这个版本的操作系统不支持 COPY 命令的可重新启动选项。 The restartable option to the COPY command is not supported bythis version of the operating system.
0x400023A8批处理参数替换中的路径运算符的下列用法无效: %1有关有效格式,请键入 CALL /? 或 FOR /? The following usage of the path operator in batch-parametersubstitution is invalid: %1For valid formats type CALL /? or FOR /?
0x400023A9环境变量 %1 没有定义 Environment variable %1 not defined
0x400023AA从批脚本外面调用批处理标签的操作无效。 Invalid attempt to call batch label outside of batch script.
0x400023AB系统找不到指定的批处理标签 - %1 The system cannot find the batch label specified - %1
0x400023AC这个版本的操作系统不支持 CMD.EXE 的 Unicode 输出选项。 The unicode output option to CMD.EXE is not supported by thisversion of the operating system.
0x400023AD如果命令扩展被启用,DEL 和 ERASE 更改如下:/S 开关的显示句法会颠倒,即只显示已经删除的文件,而不显示找不到的文件。 If Command Extensions are enabled DEL and ERASE change as follows:The display semantics of the /S switch are reversed in that it showsyou only the files that are deleted, not the ones it could not find.
0x400023AE如果命令扩展被启用,CHDIR 会如下改变:当前的目录字符串会被转换成使用磁盘名上的大小写。所以,如果磁盘上的大小写如此,CD C:\\TEMP 会将当前目录设为C:\\Temp。CHDIR 命令不把空格当作分隔符,因此有可能将目录名改为一个带有空格但不带有引号的子目录名。例如: cd \\winnt\\profiles\\username\\programs\\start menu与下列相同: cd \"\\winnt\\profiles\\username\\programs\\start menu\" 在扩展停用的情况下,你必须键入以上命令。 If Command Extensions are enabled CHDIR changes as follows:The current directory string is converted to use the same case asthe on disk names. So CD C:\\TEMP would actually set the currentdirectory to C:\\Temp if that is the case on disk.CHDIR command does not treat spaces as delimiters, so it is possible toCD into a subdirectory name that contains a space without surroundingthe name with quotes. For example: cd \\winnt\\profiles\\username\\programs\\start menuis the same as: cd \"\\winnt\\profiles\\username\\programs\\start menu\"which is what you would have to type if extensions were disabled.
0x400023AF如果命令扩展被启用,MKDIR 会如下改变:如果需要,MKDIR 会在路径中创建中级目录。例如: 假设 \\a 不存在,那么: mkdir \\a\\b\\c\\d与: mkdir \\a chdir \\a mkdir b chdir b mkdir c chdir c mkdir d相同。如果扩展被停用,则需要键入 mkdir \\a\\b\\c\\d。 If Command Extensions are enabled MKDIR changes as follows:MKDIR creates any intermediate directories in the path, if needed.For example, assume \\a does not exist then: mkdir \\a\\b\\c\\dis the same as: mkdir \\a chdir \\a mkdir b chdir b mkdir c chdir c mkdir dwhich is what you would have to type if extensions were disabled.
0x400023B0如果命令扩展被启用,DATE 命令会支持 /T 开关;该开关指示命令只输出当前日期,但不提示输入新日期。 If Command Extensions are enabled the DATE command supportsthe /T switch which tells the command to just output thecurrent date, without prompting for a new date.
0x400023B1如果命令扩展被启用,TIME 命令会支持 /T 命令行开关;该命令行开关告诉命令只输出当前时间,但不提示输入新时间。 If Command Extensions are enabled the TIME command supportsthe /T switch which tells the command to just output thecurrent time, without prompting for a new time.
0x400023B2如果命令扩展被启用,PROMPT 命令会支持下列格式化字符: $+ 根据 PUSHD 目录堆栈的深度,零个或零个以上加号(+)字符, 一个推的层一个字符。 $M 如果当前驱动器不是网络驱动器,显示跟当前驱动器号或 空字符串有关联的远程名。 If Command Extensions are enabled the PROMPT command supportsthe following additional formatting characters: $+ zero or more plus sign (+) characters depending upon the depth of the PUSHD directory stack, one character for each level pushed. $M Displays the remote name associated with the current drive letter or the empty string if current drive is not a network drive.
0x400023B3如果命令扩展被启用,除了一般驱动器号和路径,PUSHD 命令还接受网络路径。如果指定了网络路径,PUSHD 将创建一个指向指定网络资源的临时驱动器号,然后再用刚定义的驱动器号更改当前的驱动器和目录。可以从 Z: 往下分配临时驱动器号,使用找到的第一个没有用过的驱动器号。 If Command Extensions are enabled the PUSHD command acceptsnetwork paths in addition to the normal drive letter and path.If a network path is specified, PUSHD will create a temporarydrive letter that points to that specified network resource andthen change the current drive and directory, using the newlydefined drive letter. Temporary drive letters are allocated fromZ: on down, using the first unused drive letter found.
0x400023B4如果命令扩展被启用,从推目录堆栈 POPD 驱动器时,POPD命令会删除 PUSHD 创建的临时驱动器号。 If Command Extensions are enabled the POPD command will deleteany temporary drive letter created by PUSHD when you POPD thatdrive off the pushed directory stack.
0x400023B5如果命令扩展被启用,SET 会如下改变:可仅用一个变量激活 SET 命令,等号或值不显示所有前缀匹配SET 命令已使用的名称的所有变量的值。例如: SET P会显示所有以字母 P 打头的变量如果在当前环境中找不到该变量名称,SET 命令将把 ERRORLEVEL设置成 1。SET 命令不允许变量名含有等号。在 SET 命令中添加了两个新命令行开关: SET /A expression SET /P variable=[promptString]/A 命令行开关指定等号右边的字符串为被评估的数字表达式。该表达式评估器很简单并以递减的优先权顺序支持下列操作: () - 分组 ! ~ - - 一元运算符 * / %% - 算数运算符 + - - 算数运算符 - 逻辑移位 & - 按位“与” ^ - 按位“异” | - 按位“或” = *= /= %%= += -= - 赋值 &= ^= |= = , - 表达式分隔符如果你使用任何逻辑或取余操作符, 你需要将表达式字符串用引号扩起来。在表达式中的任何非数字字符串键作为环境变量名称,这些环境变量名称的值已在使用前转换成数字。如果指定了一个环境变量名称,但未在当前环境中定义,那么值将被定为零。这使你可以使用环境变量值做计算而不用键入那些 %% 符号来得到它们的值。如果 SET /A 在命令脚本外的命令行执行的,那么它显示该表达式的最后值。该分配的操作符在分配的操作符左边需要一个环境变量名称。除十六进制有 0x 前缀,八进制有 0 前缀的,数字值为十进位数字。因此,0x12 与 18 和 022 相同。请注意八进制公式可能很容易搞混: 08 和 09 是无效的数字,因为 8 和 9 不是有效的八进制位数。(& ) If Command Extensions are enabled SET changes as follows:SET command invoked with just a variable name, no equal sign or valuewill display the value of all variables whose prefix matches the namegiven to the SET command. For example: SET Pwould display all variables that begin with the letter 'P'SET command will set the ERRORLEVEL to 1 if the variable name is notfound in the current environment.SET command will not allow an equal sign to be part of the name ofa variable.Two new switches have been added to the SET command: SET /A expression SET /P variable=[promptString]The /A switch specifies that the string to the right of the equal signis a numerical expression that is evaluated. The expression evaluatoris pretty simple and supports the following operations, in decreasingorder of precedence: () - grouping ! ~ - - unary operators * / %% - arithmetic operators + - - arithmetic operators - logical shift & - bitwise and ^ - bitwise exclusive or | - bitwise or = *= /= %%= += -= - assignment &= ^= |= = , - expression separatorIf you use any of the logical or modulus operators, you will need toenclose the expression string in quotes. Any non-numeric strings in theexpression are treated as environment variable names whose values areconverted to numbers before using them. If an environment variable nameis specified but is not defined in the current environment, then a valueof zero is used. This allows you to do arithmetic with environmentvariable values without having to type all those %% signs to get theirvalues. If SET /A is executed from the command line outside of acommand script, then it displays the final value of the expression. Theassignment operator requires an environment variable name to the left ofthe assignment operator. Numeric values are decimal numbers, unlessprefixed by 0x for hexadecimal numbers, and 0 for octal numbers.So 0x12 is the same as 18 is the same as 022. Please note that the octalnotation can be confusing: 08 and 09 are not valid numbers because 8 and9 are not valid octal digits.
0x400023B6/P 命令行开关允许将变量数值设成用户输入的一行输入。读取输入行之前,显示指定的 promptString。promptString 可以是空的。环境变量替换已如下增强: %%PATH:str1=str2%%会扩展 PATH 环境变量,用 \"str2\" 代替扩展结果中的每个 \"str1\"。要有效地从扩展结果中删除所有的 \"str1\",\"str2\" 可以是空的。\"str1\" 可以以星号打头;在这种情况下,\"str1\" 会从扩展结果的开始到 str1 剩余部分第一次出现的地方,都一直保持相配。也可以为扩展名指定子字符串。 %%PATH:~10,5%%会扩展 PATH 环境变量,然后只使用在扩展结果中从第 11 个(偏移量 10)字符开始的五个字符。如果没有指定长度,则采用默认值,即变量数值的余数。如果两个数字(偏移量和长度)都是负数,使用的数字则是环境变量数值长度加上指定的偏移量或长度。 %%PATH:~-10%%会提取 PATH 变量的最后十个字符。 %%PATH:~0,-2%%会提取 PATH 变量的所有字符,除了最后两个。 The /P switch allows you to set the value of a variable to a line of inputentered by the user. Displays the specified promptString before readingthe line of input. The promptString can be empty.Environment variable substitution has been enhanced as follows: %%PATH:str1=str2%%would expand the PATH environment variable, substituting each occurrenceof \"str1\" in the expanded result with \"str2\". \"str2\" can be the emptystring to effectively delete all occurrences of \"str1\" from the expandedoutput. \"str1\" can begin with an asterisk, in which case it will matcheverything from the beginning of the expanded output to the firstoccurrence of the remaining portion of str1.May also specify substrings for an expansion. %%PATH:~10,5%%would expand the PATH environment variable, and then use only the 5characters that begin at the 11th (offset 10) character of the expandedresult. If the length is not specified, then it defaults to theremainder of the variable value. If either number (offset or length) isnegative, then the number used is the length of the environment variablevalue added to the offset or length specified. %%PATH:~-10%%would extract the last 10 characters of the PATH variable. %%PATH:~0,-2%%would extract all but the last 2 characters of the PATH variable.
0x400023B7终于添加了延迟环境变量扩充的支持。该支持总是按默认值被停用,但也可以通过 CMD.EXE 的 /V 命令行开关而被启用/停用。请参阅 CMD /?考虑到读取一行文本时所遇到的目前扩充的限制时,延迟环境变量扩充是很有用的,而不是执行的时候。以下例子说明直接变量扩充的问题: set VAR=before if \"%%VAR%%\" == \"before\" ( set VAR=after if \"%%VAR%%\" == \"after\" @echo If you see this, it worked )不会显示消息,因为在读到第一个 IF 语句时,BOTH IF 语句中的 %%VAR%% 会被代替;原因是: 它包含 IF 的文体,IF 是一个复合语句。所以,复合语句中的 IF 实际上是在比较 \"before\" 和\"after\",这两者永远不会相等。同样,以下这个例子也不会达到预期效果: set LIST= for %%i in (*) do set LIST=%%LIST%% %%i echo %%LIST%%原因是,它不会在目前的目录中建立一个文件列表,而只是将LIST 变量设成找到的最后一个文件。这也是因为 %%LIST%% 在FOR 语句被读取时,只被扩充了一次;而且,那时的 LIST 变量是空的。因此,我们真正执行的 FOR 循环是: for %%i in (*) do set LIST= %%i这个循环继续将 LIST 设成找到的最后一个文件。延迟环境变量扩充允许你使用一个不同的字符(惊叹号)在执行时间扩充环境变量。如果延迟的变量扩充被启用,可以将上面例子写成以下所示,以达到预期效果: set VAR=before if \"%%VAR%%\" == \"before\" ( set VAR=after if \"!VAR!\" == \"after\" @echo If you see this, it worked ) set LIST= for %%i in (*) do set LIST=!LIST! %%i echo %%LIST%% Finally, support for delayed environment variable expansion has beenadded. This support is always disabled by default, but may beenabled/disabled via the /V command line switch to CMD.EXE. See CMD /?Delayed environment variable expansion is useful for getting aroundthe limitations of the current expansion which happens when a lineof text is read, not when it is executed. The following exampledemonstrates the problem with immediate variable expansion: set VAR=before if \"%%VAR%%\" == \"before\" ( set VAR=after if \"%%VAR%%\" == \"after\" @echo If you see this, it worked )would never display the message, since the %%VAR%% in BOTH IF statementsis substituted when the first IF statement is read, since it logicallyincludes the body of the IF, which is a compound statement. So theIF inside the compound statement is really comparing \"before\" with\"after\" which will never be equal. Similarly, the following examplewill not work as expected: set LIST= for %%i in (*) do set LIST=%%LIST%% %%i echo %%LIST%%in that it will NOT build up a list of files in the current directory,but instead will just set the LIST variable to the last file found.Again, this is because the %%LIST%% is expanded just once when theFOR statement is read, and at that time the LIST variable is empty.So the actual FOR loop we are executing is: for %%i in (*) do set LIST= %%iwhich just keeps setting LIST to the last file found.Delayed environment variable expansion allows you to use a differentcharacter (the exclamation mark) to expand environment variables atexecution time. If delayed variable expansion is enabled, the aboveexamples could be written as follows to work as intended: set VAR=before if \"%%VAR%%\" == \"before\" ( set VAR=after if \"!VAR!\" == \"after\" @echo If you see this, it worked ) set LIST= for %%i in (*) do set LIST=!LIST! %%i echo %%LIST%%
0x400023B8如果命令扩展被启用,有几个动态环境变量可以被扩展,但不会出现在 SET 显示的变量列表中。每次变量数值被扩展时,这些变量数值都会被动态计算。如果用户用这些名称中任何一个明确定义变量,那个定义会替代下面描述的动态定义:%%CD%% - 扩展到当前目录字符串。%%DATE%% - 用跟 DATE 命令同样的格式扩展到当前日期。%%TIME%% - 用跟 TIME 命令同样的格式扩展到当前时间。%%RANDOM%% - 扩展到 0 和 32767 之间的任意十进制数字。%%ERRORLEVEL%% - 扩展到当前 ERRORLEVEL 数值。%%CMDEXTVERSION%% - 扩展到当前命令处理器扩展版本号。%%CMDCMDLINE%% - 扩展到调用命令处理器的原始命令行。%%HIGHESTNUMANODENUMBER%% - 扩展到此计算机上的最高 NUMA 节点号。 If Command Extensions are enabled, then there are several dynamicenvironment variables that can be expanded but which don't show up inthe list of variables displayed by SET. These variable values arecomputed dynamically each time the value of the variable is expanded.If the user explicitly defines a variable with one of these names, thenthat definition will override the dynamic one described below:%%CD%% - expands to the current directory string.%%DATE%% - expands to current date using same format as DATE command.%%TIME%% - expands to current time using same format as TIME command.%%RANDOM%% - expands to a random decimal number between 0 and 32767.%%ERRORLEVEL%% - expands to the current ERRORLEVEL value%%CMDEXTVERSION%% - expands to the current Command Processor Extensions version number.%%CMDCMDLINE%% - expands to the original command line that invoked the Command Processor.%%HIGHESTNUMANODENUMBER%% - expands to the highest NUMA node number on this machine.
0x400023B9如果命令扩展被启用,GOTO 会如下改变:GOTO 命令现在接受目标标签 :EOF,这个标签将控制转移到当前批脚本文件的结尾。不定义就退出批脚本文件,这是一个容易的办法。有关能使该功能有用的 CALL 命令的扩展描述,请键入CALL /?。 If Command Extensions are enabled GOTO changes as follows:GOTO command now accepts a target label of :EOF which transfers controlto the end of the current batch script file. This is an easy way toexit a batch script file without defining a label. Type CALL /? for adescription of extensions to the CALL command that make this featureuseful.
0x400023BA如果命令扩展被启用,SHIFT 命令支持/n 命令行开关;该命令行开关告诉命令从第 n 个参数开始移位;n 介于零和八之间。例如: SHIFT /2会将 %%3 移位到 %%2,将 %%4 移位到 %%3,等等;并且不影响 %%0 和 %%1。 If Command Extensions are enabled the SHIFT command supportsthe /n switch which tells the command to start shifting at thenth argument, where n may be between zero and eight. For example: SHIFT /2would shift %%3 to %%2, %%4 to %%3, etc. and leave %%0 and %%1 unaffected.
0x400023BB如果命令扩展被启用,CALL 会如下改变:CALL 命令现在将卷标当作 CALL 的目标接受。语法是: CALL:label arguments一个新的批文件上下文由指定的参数所创建,控制在卷标被指定后传递到语句。你必须通过达到批脚本文件末两次来 \"exit\" 两次。第一次读到文件末时,控制会回到 CALL 语句的紧后面。第二次会退出批脚本。键入 GOTO /?,参看 GOTO :EOF 扩展的描述,此描述允许你从一个批脚本返回。另外,批脚本文本参数参照(%%0、%%1、等等)已如下改变: 批脚本里的 %%* 指出所有的参数(如 %%1 %%2 %%3 %%4 %%5 ...) 批参数(%%n)的替代已被增强。你可以使用以下语法: %%~1 - 删除引号(\"),扩展 %%1 %%~f1 - 将 %%1 扩展到一个完全合格的路径名 %%~d1 - 仅将 %%1 扩展到一个驱动器号 %%~p1 - 仅将 %%1 扩展到一个路径 %%~n1 - 仅将 %%1 扩展到一个文件名 %%~x1 - 仅将 %%1 扩展到一个文件扩展名 %%~s1 - 扩展的路径只含有短名 %%~a1 - 将 %%1 扩展到文件属性 %%~t1 - 将 %%1 扩展到文件的日期/时间 %%~z1 - 将 %%1 扩展到文件的大小 %%~$PATH:1 - 查找列在 PATH 环境变量的目录,并将 %%1 扩展到找到的第一个完全合格的名称。如果 环境变量名未被定义,或者没有找到文件, 此修改符会扩展到空字符串 If Command Extensions are enabled CALL changes as follows:CALL command now accepts labels as the target of the CALL. The syntaxis: CALL :label argumentsA new batch file context is created with the specified arguments andcontrol is passed to the statement after the label specified. You must\"exit\" twice by reaching the end of the batch script file twice. Thefirst time you read the end, control will return to just after the CALLstatement. The second time will exit the batch script. Type GOTO /?for a description of the GOTO :EOF extension that will allow you to\"return\" from a batch script.In addition, expansion of batch script argument references (%%0, %%1,etc.) have been changed as follows: %%* in a batch script refers to all the arguments (e.g. %%1 %%2 %%3 %%4 %%5 ...) Substitution of batch parameters (%%n) has been enhanced. You can now use the following optional syntax: %%~1 - expands %%1 removing any surrounding quotes (\") %%~f1 - expands %%1 to a fully qualified path name %%~d1 - expands %%1 to a drive letter only %%~p1 - expands %%1 to a path only %%~n1 - expands %%1 to a file name only %%~x1 - expands %%1 to a file extension only %%~s1 - expanded path contains short names only %%~a1 - expands %%1 to file attributes %%~t1 - expands %%1 to date/time of file %%~z1 - expands %%1 to size of file %%~$PATH:1 - searches the directories listed in the PATH environment variable and expands %%1 to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found by the search, then this modifier expands to the empty string
0x400023BC可以组合修改符来取得多重结果: %%~dp1 - 只将 %%1 扩展到驱动器号和路径 %%~nx1 - 只将 %%1 扩展到文件名和扩展名 %%~dp$PATH:1 - 在列在 PATH 环境变量中的目录里查找 %%1, 并扩展到找到的第一个文件的驱动器号和路径。 %%~ftza1 - 将 %%1 扩展到类似 DIR 的输出行。 在上面的例子中,%%1 和 PATH 可以被其他有效数值替换。 %%~ 语法被一个有效参数号码终止。%%~ 修定符不能跟 %%* 使用 The modifiers can be combined to get compound results: %%~dp1 - expands %%1 to a drive letter and path only %%~nx1 - expands %%1 to a file name and extension only %%~dp$PATH:1 - searches the directories listed in the PATH environment variable for %%1 and expands to the drive letter and path of the first one found. %%~ftza1 - expands %%1 to a DIR like output line In the above examples %%1 and PATH can be replaced by other valid values. The %%~ syntax is terminated by a valid argument number. The %%~ modifiers may not be used with %%*
0x400023BD如果启用命令扩展,则 SETLOCAL 更改如下:SETLOCAL 批命令现在可以接受可选参数: ENABLEEXTENSIONS / DISABLEEXTENSIONS 启用或禁用命令处理器扩展。这些 参数比 CMD /E:ON 或 /E:OFF 开关有优先权。请参阅 CMD /? 获取详细信息。 ENABLEDELAYEDEXPANSION / DISABLEDELAYEDEXPANSION 启用或禁用延缓环境变量 扩展。这些参数比 CMD /V:ON 或 /V:OFF 开关有优先权。请参阅 CMD /? 获取详细信息。无论在 SETLOCAL 命令之前的设置是什么,这些修改会一直生效,直到出现相应的 ENDLOCAL 命令。在给定参数的情况下,SETLOCAL 命令将设置 ERRORLEVEL 值。如果给定两个有效参数中的一个,另一个未给定,则该值为零。通过以下方法,你可以在批脚本中使用此项来确定扩展是否可用: VERIFY OTHER 2nul SETLOCAL ENABLEEXTENSIONS IF ERRORLEVEL 1 echo Unable to enable extensions此方法之所以有效,是因为在 CMD.EXE 的旧版本上,SETLOCAL不设置 ERRORLEVEL 值。如果参数不正确,VERIFY 命令会将ERRORLEVEL 值初始化为非零值。 If Command Extensions are enabled SETLOCAL changes as follows:SETLOCAL batch command now accepts optional arguments: ENABLEEXTENSIONS / DISABLEEXTENSIONS enable or disable command processor extensions. These arguments takes precedence over the CMD /E:ON or /E:OFF switches. See CMD /? for details. ENABLEDELAYEDEXPANSION / DISABLEDELAYEDEXPANSION enable or disable delayed environment variable expansion. These arguments takes precedence over the CMD /V:ON or /V:OFF switches. See CMD /? for details.These modifications last until the matching ENDLOCAL command,regardless of their setting prior to the SETLOCAL command.The SETLOCAL command will set the ERRORLEVEL value if givenan argument. It will be zero if one of the two valid argumentsis given and one otherwise. You can use this in batch scriptsto determine if the extensions are available, using the followingtechnique: VERIFY OTHER 2nul SETLOCAL ENABLEEXTENSIONS IF ERRORLEVEL 1 echo Unable to enable extensionsThis works because on old versions of CMD.EXE, SETLOCAL does NOTset the ERRORLEVEL value. The VERIFY command with a bad argumentinitializes the ERRORLEVEL value to a non-zero value.
0x400023BE如果命令扩展被启用,ENDLOCAL 会如下改变:如果相应的 SETLOCAL 用新的 ENABLEEXTENSIONS 或DISABLEEXTENSIONS 选项启用或停用了命令扩展,那么,在 ENDLOCAL 之后,命令扩展的启用/停用状态会还原到执行相应的 SETLOCAL 命令前的状态。 If Command Extensions are enabled ENDLOCAL changes as follows:If the corresponding SETLOCAL enable or disabled command extensionsusing the new ENABLEEXTENSIONS or DISABLEEXTENSIONS options, thenafter the ENDLOCAL, the enabled/disabled state of command extensionswill be restored to what it was prior to the matching SETLOCALcommand execution.
0x400023BF如果命令扩展被启用,通过命令行或 START 命令的外部命令调用会如下改变:将文件名作为命令键入,非可执行文件可以通过文件关联调用。 (例如,WORD.DOC 会调用跟 .DOC 文件扩展名关联的应用程序)。 关于如何从命令脚本内部创建这些关联,请参阅 ASSOC 和 FTYPE 命令。执行的应用程序是 32 位 GUI 应用程序时,CMD.EXE 不等应用 程序终止就返回命令提示符。如果在命令脚本内执行,该新行为 则不会发生。如果执行的命令行的第一个符号是不带扩展名或路径修饰符的 字符串 \"CMD\",\"CMD\" 会被 COMSPEC 变量的数值所替换。这 防止从当前目录提取 CMD.EXE。如果执行的命令行的第一个符号没有扩展名,CMD.EXE 会使用 PATHEXT 环境变量的数值来决定要以什么顺序寻找哪些扩展 名。PATHEXT 变量的默认值是: .COM;.EXE;.BAT;.CMD 请注意,该语法跟 PATH 变量的一样,分号隔开不同的元素。查找可执行文件时,如果没有相配的扩展名,看一看该名称是否与目录名相配。如果确实如此,START 会在那个路径上调用 Explorer。如果从命令行执行,则等同于对那个路径作 CD /D。 If Command Extensions are enabled, external command invocationthrough the command line or the START command changes as follows:non-executable files may be invoked through their file association just by typing the name of the file as a command. (e.g. WORD.DOC would launch the application associated with the .DOC file extension). See the ASSOC and FTYPE commands for how to create these associations from within a command script.When executing an application that is a 32-bit GUI application, CMD.EXE does not wait for the application to terminate before returning to the command prompt. This new behavior does NOT occur if executing within a command script.When executing a command line whose first token is the string \"CMD \" without an extension or path qualifier, then \"CMD\" is replaced with the value of the COMSPEC variable. This prevents picking up CMD.EXE from the current directory.When executing a command line whose first token does NOT contain an extension, then CMD.EXE uses the value of the PATHEXT environment variable to determine which extensions to look for and in what order. The default value for the PATHEXT variable is: .COM;.EXE;.BAT;.CMD Notice the syntax is the same as the PATH variable, with semicolons separating the different elements.When searching for an executable, if there is no match on any extension,then looks to see if the name matches a directory name. If it does, theSTART command launches the Explorer on that path. If done from thecommand line, it is the equivalent to doing a CD /D to that path.
0x400023C0如果命令扩展被启用,并且操作平台是 Windows,BREAK 命令会在被调试程序调试时输入一个硬代码中断点。 If Command Extensions are enabled, and running on the Windowsplatform, then the BREAK command will enter a hard coded breakpointif being debugged by a debugger.
0x400023C1如果启用命令扩展,则会支持下列 FOR 命令的其他格式:FOR /D %%variable IN (set) DO command [command-parameters] 如果集中包含通配符,则指定与目录名匹配,而不与文件名匹配。FOR /R [[drive:]path] %%variable IN (set) DO command [command-parameters] 检查以 [drive:]path 为根的目录树,指向每个目录中的 FOR 语句。 如果在 /R 后没有指定目录规范,则使用当前目录。如果集仅为一个单点(.)字符, 则枚举该目录树。FOR /L %%variable IN (start,step,end) DO command [command-parameters] 该集表示以增量形式从开始到结束的一个数字序列。因此,(1,1,5)将产生序列 1 2 3 4 5,(5,-1,1)将产生序列(5 4 3 2 1)FOR /F [\"options\"] %%variable IN (file-set) DO command [command-parameters]FOR /F [\"options\"] %%variable IN (\"string\") DO command [command-parameters]FOR /F [\"options\"] %%variable IN ('command') DO command [command-parameters] 或者,如果有 usebackq 选项:FOR /F [\"options\"] %%variable IN (file-set) DO command [command-parameters]FOR /F [\"options\"] %%variable IN (\"string\") DO command [command-parameters]FOR /F [\"options\"] %%variable IN ('command') DO command [command-parameters] fileset 为一个或多个文件名。继续到 fileset 中的下一个文件之前, 每份文件都被打开、读取并经过处理。处理包括读取文件,将其分成一行行的文字, 然后将每行解析成零或更多的符号。然后用已找到的符号字符串变量值调用 For 循环。 以默认方式,/F 通过每个文件的每一行中分开的第一个空白符号。跳过空白行。 你可通过指定可选 \"options\" 参数替代默认解析操作。这个带引号的字符串包括一个 或多个指定不同解析选项的关键字。这些关键字为: If Command Extensions are enabled, the following additionalforms of the FOR command are supported:FOR /D %%variable IN (set) DO command [command-parameters] If set contains wildcards, then specifies to match against directory names instead of file names.FOR /R [[drive:]path] %%variable IN (set) DO command [command-parameters] Walks the directory tree rooted at [drive:]path, executing the FOR statement in each directory of the tree. If no directory specification is specified after /R then the current directory is assumed. If set is just a single period (.) character then it will just enumerate the directory tree.FOR /L %%variable IN (start,step,end) DO command [command-parameters] The set is a sequence of numbers from start to end, by step amount. So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would generate the sequence (5 4 3 2 1)FOR /F [\"options\"] %%variable IN (file-set) DO command [command-parameters]FOR /F [\"options\"] %%variable IN (\"string\") DO command [command-parameters]FOR /F [\"options\"] %%variable IN ('command') DO command [command-parameters] or, if usebackq option present:FOR /F [\"options\"] %%variable IN (file-set) DO command [command-parameters]FOR /F [\"options\"] %%variable IN ('string') DO command [command-parameters]FOR /F [\"options\"] %%variable IN (`command`) DO command [command-parameters] file-set is one or more file names. Each file is opened, read and processed before going on to the next file in file-set. Processing consists of reading in the file, breaking it up into individual lines of text and then parsing each line into zero or more tokens. The body of the for loop is then called with the variable value(s) set to the found token string(s). By default, /F passes the first blank separated token from each line of each file. Blank lines are skipped. You can override the default parsing behavior by specifying the optional \"options\" parameter. This is a quoted string which contains one or more keywords to specify different parsing options. The keywords are:
0x400023C2eol=c - 指一个行注释字符的结尾(就一个) skip=n - 指在文件开始时忽略的行数。 delims=xxx - 指分隔符集。这个替换了空格和制表符的 默认分隔符集。 tokens=x,y,m-n - 指每行的哪一个符号被传递到每个迭代 的 for 本身。这会导致额外变量名称的分配。m-n 格式为一个范围。通过 nth 符号指定 mth。如果 符号字符串中的最后一个字符星号, 那么额外的变量将在最后一个符号解析之后 分配并接受行的保留文本。 usebackq - 指定新语法已在下类情况中使用: 在作为命令执行一个后引号的字符串并且一个单 引号字符为文字字符串命令并允许在 file-set 中使用双引号扩起文件名称。 某些范例可能有助:FOR /F \"eol=; tokens=2,3* delims=, \" %%i in (myfile.txt) do @echo %%i %%j %%k eol=c - specifies an end of line comment character (just one) skip=n - specifies the number of lines to skip at the beginning of the file. delims=xxx - specifies a delimiter set. This replaces the default delimiter set of space and tab. tokens=x,y,m-n - specifies which tokens from each line are to be passed to the for body for each iteration. This will cause additional variable names to be allocated. The m-n form is a range, specifying the mth through the nth tokens. If the last character in the tokens= string is an asterisk, then an additional variable is allocated and receives the remaining text on the line after the last token parsed. usebackq - specifies that the new semantics are in force, where a back quoted string is executed as a command and a single quoted string is a literal string command and allows the use of double quotes to quote file names in file-set. Some examples might help:FOR /F \"eol=; tokens=2,3* delims=, \" %%i in (myfile.txt) do @echo %%i %%j %%k
0x400023C3会分析 myfile.txt 中的每一行,忽略以分号打头的那些行,将 每行中的第二个和第三个符号传递给 for 函数体,用逗号和/或 空格分隔符号。请注意,此 for 函数体的语句引用 %%i 来 获得第二个符号,引用 %%j 来获得第三个符号,引用 %%k 来获得第三个符号后的所有剩余符号。对于带有空格的文件 名,你需要用双引号将文件名括起来。为了用这种方式来使 用双引号,还需要使用 usebackq 选项,否则,双引号会 被理解成是用作定义某个要分析的字符串的。 %%i 在 for 语句中显式声明,%%j 和 %%k 是通过 tokens= 选项隐式声明的。可以通过 tokens= 一行 指定最多 26 个符号,只要不试图声明一个高于字母 \"z\" 或 \"Z\" 的变量。请记住,FOR 变量是单一字母、分大小写和全局的变量; 而且,不能同时使用超过 52 个。 还可以在相邻字符串上使用 FOR /F 分析逻辑,方法是, 用单引号将括号之间的 file-set 括起来。这样,该字符 串会被当作一个文件中的一个单一输入行进行解析。 最后,可以用 FOR /F 命令来分析命令的输出。方法是,将 括号之间的 file-set 变成一个反括字符串。该字符串会 被当作命令行,传递到一个子 CMD.EXE,其输出会被捕获到 内存中,并被当作文件分析。如以下例子所示: FOR /F \"usebackq delims==\" %%i IN (`set`) DO @echo %%i 会枚举当前环境中的环境变量名称。 would parse each line in myfile.txt, ignoring lines that begin with a semicolon, passing the 2nd and 3rd token from each line to the for body, with tokens delimited by commas and/or spaces. Notice the for body statements reference %%i to get the 2nd token, %%j to get the 3rd token, and %%k to get all remaining tokens after the 3rd. For file names that contain spaces, you need to quote the filenames with double quotes. In order to use double quotes in this manner, you also need to use the usebackq option, otherwise the double quotes will be interpreted as defining a literal string to parse. %%i is explicitly declared in the for statement and the %%j and %%k are implicitly declared via the tokens= option. You can specify up to 26 tokens via the tokens= line, provided it does not cause an attempt to declare a variable higher than the letter 'z' or 'Z'. Remember, FOR variables are single-letter, case sensitive, global, and you can't have more than 52 total active at any one time. You can also use the FOR /F parsing logic on an immediate string, by making the file-set between the parenthesis a quoted string, using single quote characters. It will be treated as a single line of input from a file and parsed. Finally, you can use the FOR /F command to parse the output of a command. You do this by making the file-set between the parenthesis a back quoted string. It will be treated as a command line, which is passed to a child CMD.EXE and the output is captured into memory and parsed as if it was a file. So the following example: FOR /F \"usebackq delims==\" %%i IN (`set`) DO @echo %%i would enumerate the environment variable names in the current environment.
0x400023C4另外,FOR 变量参照的替换已被增强。你现在可以使用下列选项语法: %%~I - 删除任何引号(\"),扩展 %%I %%~fI - 将 %%I 扩展到一个完全合格的路径名 %%~dI - 仅将 %%I 扩展到一个驱动器号 %%~pI - 仅将 %%I 扩展到一个路径 %%~nI - 仅将 %%I 扩展到一个文件名 %%~xI - 仅将 %%I 扩展到一个文件扩展名 %%~sI - 扩展的路径只含有短名 %%~aI - 将 %%I 扩展到文件的文件属性 %%~tI - 将 %%I 扩展到文件的日期/时间 %%~zI - 将 %%I 扩展到文件的大小 %%~$PATH:I - 查找列在路径环境变量的目录,并将 %%I 扩展 到找到的第一个完全合格的名称。如果环境变量名 未被定义,或者没有找到文件,此组合键会扩展到 空字符串可以组合修饰符来得到多重结果: %%~dpI - 仅将 %%I 扩展到一个驱动器号和路径 %%~nxI - 仅将 %%I 扩展到一个文件名和扩展名 %%~fsI - 仅将 %%I 扩展到一个带有短名的完整路径名 %%~dp$PATH:I - 搜索列在路径环境变量的目录,并将 %%I 扩展 到找到的第一个驱动器号和路径。 %%~ftzaI - 将 %%I 扩展到类似输出线路的 DIR在以上例子中,%%I 和 PATH 可用其他有效数值代替。%%~ 语法用一个有效的 FOR 变量名终止。选取类似 %%I 的大写变量名比较易读,而且避免与不分大小写的组合键混淆。 In addition, substitution of FOR variable references has been enhanced.You can now use the following optional syntax: %%~I - expands %%I removing any surrounding quotes (\") %%~fI - expands %%I to a fully qualified path name %%~dI - expands %%I to a drive letter only %%~pI - expands %%I to a path only %%~nI - expands %%I to a file name only %%~xI - expands %%I to a file extension only %%~sI - expanded path contains short names only %%~aI - expands %%I to file attributes of file %%~tI - expands %%I to date/time of file %%~zI - expands %%I to size of file %%~$PATH:I - searches the directories listed in the PATH environment variable and expands %%I to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found by the search, then this modifier expands to the empty stringThe modifiers can be combined to get compound results: %%~dpI - expands %%I to a drive letter and path only %%~nxI - expands %%I to a file name and extension only %%~fsI - expands %%I to a full path name with short names only %%~dp$PATH:I - searches the directories listed in the PATH environment variable for %%I and expands to the drive letter and path of the first one found. %%~ftzaI - expands %%I to a DIR like output lineIn the above examples %%I and PATH can be replaced by other validvalues. The %%~ syntax is terminated by a valid FOR variable name.Picking upper case variable names like %%I makes it more readable andavoids confusion with the modifiers, which are not case sensitive.
0x400023C5如果命令扩展被启用,IF 会如下改变: IF [/I] string1 compare-op string2 command IF CMDEXTVERSION number command IF DEFINED variable command其中, compare-op 可以是: EQU - 等于 NEQ - 不等于 LSS - 小于 LEQ - 小于或等于 GTR - 大于 GEQ - 大于或等于而 /I 开关(如果指定)说明要进行的字符串比较不分大小写。/I 开关可以用于 IF 的 string1==string2 的形式上。这些比较都是通用的;原因是,如果 string1 和 string2 都是由数字组成的,字符串会被转换成数字,进行数字比较。CMDEXTVERSION 条件的作用跟 ERRORLEVEL 的一样,除了它是在跟与命令扩展有关联的内部版本号比较。第一个版本是 1。每次对命令扩展有相当大的增强时,版本号会增加一个。命令扩展被停用时,CMDEXTVERSION 条件不是真的。如果已定义环境变量,DEFINED 条件的作用跟 EXIST 的一样,除了它取得一个环境变量,返回的结果是 true。 If Command Extensions are enabled IF changes as follows: IF [/I] string1 compare-op string2 command IF CMDEXTVERSION number command IF DEFINED variable commandwhere compare-op may be one of: EQU - equal NEQ - not equal LSS - less than LEQ - less than or equal GTR - greater than GEQ - greater than or equaland the /I switch, if specified, says to do case insensitive stringcompares. The /I switch can also be used on the string1==string2 formof IF. These comparisons are generic, in that if both string1 andstring2 are both comprised of all numeric digits, then the strings areconverted to numbers and a numeric comparison is performed.The CMDEXTVERSION conditional works just like ERRORLEVEL, except it iscomparing against an internal version number associated with the CommandExtensions. The first version is 1. It will be incremented by one whensignificant enhancements are added to the Command Extensions.CMDEXTVERSION conditional is never true when Command Extensions aredisabled.The DEFINED conditional works just like EXIST except it takes anenvironment variable name and returns true if the environment variableis defined.
0x400023C6如果没有名为 ERRORLEVEL 的环境变量,%%ERRORLEVEL%%会扩充为 ERROLEVEL 当前数值的字符串表达式;否则,你会得到其数值。运行程序后,以下语句说明 ERRORLEVEL 的用法: goto answer%%ERRORLEVEL%% :answer0 echo Program had return code 0 :answer1 echo Program had return code 1你也可以使用以上的数字比较: IF %%ERRORLEVEL%% LEQ 1 goto okay如果没有名为 CMDCMDLINE 的环境变量,%%CMDCMDLINE%%将在 CMD.EXE 进行任何处理前扩充为传递给 CMD.EXE 的原始命令行;否则,你会得到其数值。如果没有名为 CMDEXTVERSION 的环境变量,%%CMDEXTVERSION%% 会扩充为 CMDEXTVERSION 当前数值的字串符表达式;否则,你会得到其数值。 %%ERRORLEVEL%% will expand into a string representation ofthe current value of ERRORLEVEL, provided that there is not alreadyan environment variable with the name ERRORLEVEL, in which case youwill get its value instead. After running a program, the followingillustrates ERRORLEVEL use: goto answer%%ERRORLEVEL%% :answer0 echo Program had return code 0 :answer1 echo Program had return code 1You can also use numerical comparisons above: IF %%ERRORLEVEL%% LEQ 1 goto okay%%CMDCMDLINE%% will expand into the original command line passed toCMD.EXE prior to any processing by CMD.EXE, provided that there is notalready an environment variable with the name CMDCMDLINE, in which caseyou will get its value instead.%%CMDEXTVERSION%% will expand into a string representation of thecurrent value of CMDEXTVERSION, provided that there is not alreadyan environment variable with the name CMDEXTVERSION, in which case youwill get its value instead.
0x400023C7在 DOS 系统上启用或停用命令行编辑这在与 DOS 系统兼容的环境是可行的。它在 Windows 之下并无作用;原因是命令行编辑总是处于启用状态。 Enables or disables command line editing on DOS systemThis is present for Compatibility with DOS systems. It has no effectunder Windows, as command line editing is always enabled.
0x400023C8'%1'用作为当前目录的以上路径启动了 CMD.EXE。UNC 路径不受支持。默认值设为 Windows 目录。 '%1'CMD.EXE was started with the above path as the current directory.UNC paths are not supported. Defaulting to Windows directory.
0x400023C9'%1'CMD 不支持将 UNC 路径作为当前目录。 '%1'CMD does not support UNC paths as current directories.
0x400023CA当前目录不支持 UNC 路径。使用 PUSHD %1来创建临时驱动器号,以支持 UNC 的当前目录。请使用 POPD或 EXIT 来删除临时驱动器号。 UNC paths not supported for current directory. Using PUSHD %1to create temporary drive letter to support UNC currentdirectory. Use POPD or EXIT to delete temporary driveletter.
0x400023CBSHIFT 命令的参数无效 Invalid parameter to SHIFT command
0x400023CC括弧不对称。 Unbalanced parenthesis.
0x400023CD找不到操作数。 Missing operand.
0x400023CE运算符不存在。 Missing operator.
0x400023CF无效数字。数字常数只能是十进制(17),十六位进制(0x11)或八进制(021)。 Invalid number. Numeric constants are either decimal (17),hexadecimal (0x11), or octal (021).
0x400023D0无效数字。数字精确度限为 32 位。 Invalid number. Numbers are limited to 32-bits of precision.
0x400023D1以零为除数的错误。 Divide by zero error.
0x400023D2COMSPEC 环境变量没有指向 CMD.EXE。 The COMSPEC environment variable does not point to CMD.EXE.
0x400023D3覆盖 %1 吗? (Yes/No/All): %0 Overwrite %1? (Yes/No/All): %0
0x400023D4NYA%0 NYA%0
0x400023D5 %0 %0
0x400023D8目录名称 %1\\%2 过长。 The directory name %1\\%2 is too long.
0x400023D9%1 的完整路径太长。 The full path of %1 is too long.
0x400023DA路径 %1\\%2 太长。 The path %1\\%2 is too long.
0x400023DBFTYPE %1 太长。 The FTYPE %1 is too long.
0x400023DC无法找到库 %1。 Unable to find library %1.
0x400023DD找不到函数 %1!S!:%2!S!。 Cannot find function %1!S!:%2!S!.
0x400023DE找不到序数 %1!S!:%2!d!。 Cannot find ordinal %1!S!:%2!d!.
0x400023DF命令行太长。 The command line is too long.
0x400023E0复制了文件 %1,但是 CMD 无法重置READ_ONLY 属性。 The file %1 was copied, but CMD is unable to reset theREAD_ONLY attribute.
0x40002711找不到文件 File Not Found
0x40002712找不到 %1 Could Not Find %1
0x40002713FAT 文件系统仅支持最近写入时间 The FAT File System only support Last Write Times
0x40002714开始批处理文件中环境改动的本地化操作。在执行 SETLOCAL 之后所做的环境改动只限于批处理文件。要还原原先的设置,必须执行 ENDLOCAL。达到批处理文件结尾时,对于该批处理文件的每个尚未执行的 SETLOCAL 命令,都会有一个隐含的 ENDLOCAL 被执行。SETLOCAL Begins localization of environment changes in a batch file. Environmentchanges made after SETLOCAL has been issued are local to the batch file.ENDLOCAL must be issued to restore the previous settings. When the endof a batch script is reached, an implied ENDLOCAL is executed for anyoutstanding SETLOCAL commands issued by that batch script.SETLOCAL
0x40002715结束批处理文件中环境改动的本地化操作。在执行ENDLOCAL 之后所做的环境改动不再仅限于批处理文件。批处理文件结束后,原先的设置无法还原。ENDLOCAL Ends localization of environment changes in a batch file.Environment changes made after ENDLOCAL has been issued arenot local to the batch file; the previous settings are notrestored on termination of the batch file.ENDLOCAL
0x40002716设置命令提示窗口的窗口标题。TITLE [string] string 指定命令提示窗口的标题。 Sets the window title for the command prompt window.TITLE [string] string Specifies the title for the command prompt window.
0x40002717允许程序象在当前目录中那样打开指定目录中的数据文件。APPEND [[drive:]path[;...]] [/X[:ON | :OFF]] [/PATH:ON | /PATH:OFF] [/E]APPEND ; [drive:]path 指定要附加的驱动器和目录。 /X:ON 用附加的目录用于文件搜索和应用程序执行。 /X:OFF 将附加的目录仅用于打开文件的请求。/X:OFF 为默认 设置。 /PATH:ON 将附加的目录用于已经指定路径的文件请求。 /PATH:ON 为默认设置。 /PATH:OFF 关闭 /PATH:ON 的效果。 /E 在名为 APPEND 环境变量中存储一份附加目录列表。/E 只能在系统启动后第一次使用 APPEND 时使用。键入 APPEND ; 来清除附加目录列表。键入 APPEND 而不带参数来显示这个附加目录列表。 Allows programs to open data files in specified directories as if they werein the current directory.APPEND [[drive:]path[;...]] [/X[:ON | :OFF]] [/PATH:ON | /PATH:OFF] [/E]APPEND ; [drive:]path Specifies a drive and directory to append. /X:ON Applies appended directories to file searches and application execution. /X:OFF Applies appended directories only to requests to open files. /X:OFF is the default setting. /PATH:ON Applies the appended directories to file requests that already specify a path. /PATH:ON is the default setting. /PATH:OFF Turns off the effect of /PATH:ON. /E Stores a copy of the appended directory list in an environment variable named APPEND. /E may be used only the first time you use APPEND after starting up your system.Type APPEND ; to clear the appended directory list.Type APPEND without parameters to display the appended directory list.
0x40002718移动文件并重命名文件和目录。要移动至少一个文件:MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination要重命名一个目录:MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2 [drive:][path]filename1 指定你想移动的文件位置和名称。 destination 指定文件的新位置。目标可包含一个驱动器号 和冒号、一个目录名或组合。如果只移动一个文件 并在移动时将其重命名,你还可以包括文件名。 [drive:][path]dirname1 指定要重命名的目录。 dirname2 指定目录的新名称。 /Y 取消确认覆盖一个现有目标文件的提示。 /-Y 对确认覆盖一个现有目标文件发出提示。命令行开关 /Y 可以出现在 COPYCMD 环境变量中。这可以用命令行上的 /-Y 替代。默认值是,除非 MOVE 命令是从一个批脚本内执行的,覆盖时都发出提示。 Moves files and renames files and directories.To move one or more files:MOVE [/Y | /-Y] [drive:][path]filename1[,...] destinationTo rename a directory:MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2 [drive:][path]filename1 Specifies the location and name of the file or files you want to move. destination Specifies the new location of the file. Destination can consist of a drive letter and colon, a directory name, or a combination. If you are moving only one file, you can also include a filename if you want to rename the file when you move it. [drive:][path]dirname1 Specifies the directory you want to rename. dirname2 Specifies the new name of the directory. /Y Suppresses prompting to confirm you want to overwrite an existing destination file. /-Y Causes prompting to confirm you want to overwrite an existing destination file.The switch /Y may be present in the COPYCMD environment variable.This may be overridden with /-Y on the command line. Default isto prompt on overwrites unless MOVE command is being executed fromwithin a batch script.
0x40002719保存当前目录以供 POPD 命令使用,然后改到指定的目录。PUSHD [path | ..] path 指定要成为当前目录的目录。 Stores the current directory for use by the POPD command, thenchanges to the specified directory.PUSHD [path | ..] path Specifies the directory to make the current directory.
0x4000271A更改到 PUSHD 命令存储的目录。POPD Changes to the directory stored by the PUSHD command.POPD
0x4000271B%1 - %0 %1 - %0
0x4000271C已经达到最大的 setlocal 递归层。 Maximum setlocal recursion level reached.
0x4000271D输入新日期: (年月日) %0 Enter the new date: (yy-mm-dd) %0
0x4000271E输入新日期: (日月年) %0 Enter the new date: (dd-mm-yy) %0
0x4000271F校验错误 - %1 ERROR Verify - %1
0x40002720无法将多个文件移动到单个文件中。 Cannot move multiple files to a single file.
0x40002721句柄 %1 在重定向期间无法打开。 The handle could not be openedduring redirection of handle %1.
0x40002722%r%1%% 已复制 %0 %r%1%% copied %0
0x40002723设置默认的控制台前景和背景颜色。COLOR [attr] attr 指定控制台输出的颜色属性。颜色属性由两个十六进制数字指定 -- 第一个对应于背景,第二个对应于前景。每个数字可以为以下任何值: 0 = 黑色 8 = 灰色 1 = 蓝色 9 = 淡蓝色 2 = 绿色 A = 淡绿色 3 = 浅绿色 B = 淡浅绿色 4 = 红色 C = 淡红色 5 = 紫色 D = 淡紫色 6 = 黄色 E = 淡黄色 7 = 白色 F = 亮白色如果没有给定任何参数,此命令会将颜色还原到 CMD.EXE 启动时的颜色。这个值来自当前控制台窗口、/T 命令行开关或 DefaultColor 注册表值。如果尝试使用相同的前景和背景颜色来执行 COLOR 命令,COLOR 命令会将 ERRORLEVEL 设置为 1。示例: \"COLOR fc\" 在亮白色上产生淡红色 Sets the default console foreground and background colors.COLOR [attr] attr Specifies color attribute of console outputColor attributes are specified by TWO hex digits -- the firstcorresponds to the background; the second the foreground. Each digitcan be any of the following values: 0 = Black 8 = Gray 1 = Blue 9 = Light Blue 2 = Green A = Light Green 3 = Aqua B = Light Aqua 4 = Red C = Light Red 5 = Purple D = Light Purple 6 = Yellow E = Light Yellow 7 = White F = Bright WhiteIf no argument is given, this command restores the color to what it waswhen CMD.EXE started. This value either comes from the current consolewindow, the /T command line switch or from the DefaultColor registryvalue.The COLOR command sets ERRORLEVEL to 1 if an attempt is made to executethe COLOR command with a foreground and background color that are thesame.Example: \"COLOR fc\" produces light red on bright white
0x40002724超出了最大的路径长度 - %1 Maximum path length exceeded - %1
0x40002727****** B A T C H R E C U R S I O N exceeds STACK limits ******Recursion Count=%1!d!, Stack Usage=%2!d! percent****** B A T C H PROCESSING IS A B O R T E D ****** ****** B A T C H R E C U R S I O N exceeds STACK limits ******Recursion Count=%1!d!, Stack Usage=%2!d! percent****** B A T C H PROCESSING IS A B O R T E D ******
0x40002728在 PUSHD 堆栈中的目录太多。 There are too many directories already in the PUSHD stack.
0x40002729命令提示符已被系统管理员停用。 The command prompt has been disabled by your administrator.
0x4000272A创建符号链接。MKLINK [[/D] | [/H] | [/J]] Link Target /D 创建目录符号链接。默认为文件 符号链接。 /H 创建硬链接而非符号链接。 /J 创建目录联接。 Link 指定新的符号链接名称。 Target 指定新链接引用的路径 (相对或绝对)。 Creates a symbolic link.MKLINK [[/D] | [/H] | [/J]] Link Target /D Creates a directory symbolic link. Default is a file symbolic link. /H Creates a hard link instead of a symbolic link. /J Creates a Directory Junction. Link Specifies the new symbolic link name. Target Specifies the path (relative or absolute) that the new link refers to.
0x4000272B为 %1!s! %2!s! 创建了硬链接 Hardlink created for %1!s! %2!s!
0x4000272C为 %1!s! %2!s! 创建的符号链接 symbolic link created for %1!s! %2!s!
0x4000272D为 %1!s! %2!s! 创建的联接 Junction created for %1!s! %2!s!
0x4000272E需要本地 NTFS 卷来完成该操作。 Local NTFS volumes are required to complete the operation.
0x4000272F新链接和现有文件必须处于相同的 NTFS 卷上。 The new link and the existing file must be on the same NTFS volume.
0x40002730设备不支持符号链接。 The device does not support symbolic links.
0x40002731你没有足够的权限执行此操作。 You do not have sufficient privilege to perform this operation.
0x40002732允许通过事务控制文件操作来提交或中止更改。TRANSACTION [/START | /COMMIT | /ROLLBACK | /SUSPEND | /RESUME] /START - 启动一个新事务。每次仅可以暂停一个任务。 /COMMIT - 提交当前事务的所有更改。 /ROLLBACK - 回退当前事务的所有更改。 /SUSPEND - 禁用正在运行的事务,使其暂停,然后在非事务处理模式 下继续运行。 /RESUME - 启用已使用 SUSPEND 禁用的事务。对于 COMMIT 和 ROLLBACK,都会在命令执行之后关闭事务。如果没有指定任何参数,此命令会为 CMD.EXE 显示事务的当前状态。 Allows control of file operations via transactions to commit or abortchanges.TRANSACTION [/START | /COMMIT | /ROLLBACK | /SUSPEND | /RESUME] /START - Start a new transaction. Only one can be pending at a time. /COMMIT - Commit all changes for the current transaction. /ROLLBACK - Rolls back all changes for the current transaction. /SUSPEND - Disables the running transaction, leaving it pending, and continue in non-transacted mode. /RESUME - Enable the transaction disabled with suspend.For both commit and rollback, the transaction is then closed afterthe command executes.If no argument is given, this command displays the current state of thetransaction for CMD.EXE.
0x40002733事务 ID: %1 Transaction ID: %1
0x40002734活动事务正在进行中。 An active transaction is in progress.
0x40002735不存在任何活动事务。 There is no active transaction.
0x40002736事务已成功启动。 A transaction has been successfully started.
0x40002737不存在任何要提交、回退、暂停或恢复的事务。 There is no transaction to commit, rollback, suspend or resume.
0x40002738活动事务已在进行中。直到提交或回退当前事务之后,才能启动新的事务。 An active transaction is already in progress. A new one cannotbe started until the current one is committed or rolled back.
0x40002739无法提交或回退已从另一个进程继承的事务。 Cannot commit or rollback a transaction that has been inheritedfrom another process.
0x4000273A无法提交在来自某个批文件内部的批文件的外部启动的事务。 Cannot commit a transaction that was started outside of a batchfile from within a batch file.
0x4000273B无法暂停事务,因为事务已被暂停。 Cannot suspend a transaction because a transaction is alreadysuspended.
0x4000273C无法恢复事务,因为当前没有任何事务被暂停。 Cannot resume a transaction because no transaction is currentlysuspended.
0x4000273D无法恢复在某个先前的批文件中暂停的事务。 Cannot resume a transaction suspended in a previous batch file.
0x4000273E事务已成功恢复。 Transaction successfully resumed.
0x4000273F事务已成功暂停。 Transaction successfully suspended.
0x40002740在此事务内仍有 %1 个事务在运行。一旦那些进程终止,提交或回退将继续。 There are still %1 process(es) running within thistransaction. Commit or rollback will continue once thoseprocesses have terminated.
0x40002741此事务已被回退。 This transaction has already been rolled back.
0x40002742当前事务已被回退。 The current transaction has been rolled back.
0x40002743当前事务已被回退,因为CMD 已退出或批文件已完成。 The current transaction has been rolled back becauseCMD exited or the batch file completed.
0x40002744此事务已被提交。 This transaction has already been committed.
0x40002745当前事务已被提交。 The current transaction has been committed.
0x40002746当前事务已被提交或在CMD 之外被中止,且已被成功放弃。 The current transaction has been committed or aborted outside ofCMD, and has been successfully abandoned.
0x40002747查询事务状态失败。未知结果状态为 %1 Failed to query transaction state. Unknown outcome state is %1
0x40002748管理员: %0 Administrator: %0
0x40002749完成该操作需要本地卷。 Local volumes are required to complete the operation.

EXIF

File Name:cmd.exe.mui
Directory:%WINDIR%\WinSxS\amd64_microsoft-windows-c..andprompt.resources_31bf3856ad364e35_10.0.15063.0_zh-cn_f01c21dfb1dac686\
File Size:64 kB
File Permissions:rw-rw-rw-
File Type:Win32 DLL
File Type Extension:dll
MIME Type:application/octet-stream
Machine Type:Intel 386 or later, and compatibles
Time Stamp:0000:00:00 00:00:00
PE Type:PE32
Linker Version:14.10
Code Size:0
Initialized Data Size:65024
Uninitialized Data Size:0
Entry Point:0x0000
OS Version:10.0
Image Version:10.0
Subsystem Version:6.0
Subsystem:Windows GUI
File Version Number:10.0.15063.0
Product Version Number:10.0.15063.0
File Flags Mask:0x003f
File Flags:(none)
File OS:Windows NT 32-bit
Object File Type:Executable application
File Subtype:0
Language Code:Chinese (Simplified)
Character Set:Unicode
Company Name:Microsoft Corporation
File Description:Windows 命令处理程序
File Version:10.0.15063.0 (WinBuild.160101.0800)
Internal Name:cmd
Legal Copyright:© Microsoft Corporation. All rights reserved.
Original File Name:Cmd.Exe.MUI
Product Name:Microsoft® Windows® Operating System
Product Version:10.0.15063.0
Directory:%WINDIR%\WinSxS\wow64_microsoft-windows-c..andprompt.resources_31bf3856ad364e35_10.0.15063.0_zh-cn_fa70cc31e63b8881\

What is cmd.exe.mui?

cmd.exe.mui is Multilingual User Interface resource file that contain Chinese (Simplified) language for file cmd.exe (Windows 命令处理程序).

File version info

File Description:Windows 命令处理程序
File Version:10.0.15063.0 (WinBuild.160101.0800)
Company Name:Microsoft Corporation
Internal Name:cmd
Legal Copyright:© Microsoft Corporation. All rights reserved.
Original Filename:Cmd.Exe.MUI
Product Name:Microsoft® Windows® Operating System
Product Version:10.0.15063.0
Translation:0x804, 1200