cmd.exe Windows 命令處理程式 b85ab0525120fa46cd187ebf3ef58208

File info

File name: cmd.exe.mui
Size: 66048 byte
MD5: b85ab0525120fa46cd187ebf3ef58208
SHA1: 41ec04fba95e0af4c058b4acfdf010b1bf57e4ca
SHA256: 44297faf7b9dfe424522bbb2c800611e286d4b06e3af77283744f840cb0b7558
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 (Traditional) 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 (Traditional) 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 指定一個二位元檔案。 destination 為新檔案指定目錄及 (或) 檔案名稱。 /V 確認新檔案是否正確寫入。 /N 使用短檔名來複製非 8.3 名稱的檔案 (如果可用的話)。 /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 根據屬性選取要刪除的檔案 attributes R 唯讀檔案 S 系統檔案 H 隱藏檔案 A 準備保存的檔案 - 首碼表示否定 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 依照指定的檔案屬性來顯示檔案。 attributes D 目錄 R 唯讀檔 H 隱藏檔 A 保存檔 S 系統檔案 - 無意義 L 重新分析點 - 首碼表示否定 /B 使用單純格式 (沒有標頭資訊或摘要)。 /C 顯示檔案大小千位數分隔符號。這是預設值。使用 /-C 來停用 分隔符號的顯示。 /D 與寬的列表格式相同,但是依照欄來排序。 /L 使用小寫顯示。 /N 使用新的長列表格式,檔名會顯示在最右方。 /O 依照指定的排序順序來列出檔案。 sortorder N 依名稱 (英文字母) S 依大小 (最小的在前) E 依副檔名 (英文字母) D 依照日期與時間 (日期較早的在前) G 先列出子目錄 - 表示相反的順序 /P 當資料填滿整個螢幕時暫停顯示。 /Q 顯示檔案擁有者。 /R 顯示檔案的替代資料流。 /S 顯示指定目錄及所有子目錄中的檔案。 /T 指定用來顯示或排序的時間欄位 timefield 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 後退 (清除前一個字元) $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 而不加上參數,可以顯示目前的 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 表示 Windows 應該只有在條件為偽時才執行命令。 ERRORLEVEL number 當上一個執行的程式傳回的結束代碼大於或等於指定 數字時,則條件為真。 string1==string2 當指定的文字字串相符合時,則條件為真。 EXIST filename 如果指定的檔名存在時,則條件為真。 command 指定當條件為真時所要執行的命令。命令之後可以 接著 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-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 命令或批次檔,命令處理程式會使用 /K 參數 執行 cmd.exe。這表示命令執行完成之後,視窗仍會維持開啟。 如果這不是內部 cmd 命令或批次檔,它就是一個程式,它會以 視窗化應用程式或主控台應用程式的方式執行。 parameters 這些是傳遞給 command/program 的參數。注意: SEPARATE 與 SHARED 選項不支援 64 位元平台。指定 /NODE 可讓您以利用 NUMA 系統上記憶體位置的方式建立處理程序。例如,若兩個處理程序會透過共用記憶體頻繁地與彼此通訊,則您可以建立處理程序並讓它們共用相同的慣用 NUMA 節點,以將記憶體延遲最小化。在可能的情況下,它們會從相同的 NUMA節點配置記憶體,而且它們可以自由地在所指定節點外部的處理器上執行。 start /NODE 1 application1.exe start /NODE 1 application2.exe您可以進一步限制這兩個處理程序,讓它們在相同 NUMA 節點內的特定處理器上執行。在下列範例中,application1 會在節點的兩個低位處理器上執行,而 application2會在節點的下兩個處理器上執行。此範例假設指定的節點至少有四個邏輯處理器。請注意,您可以將節點數目變更為該電腦的任何有效節點數目,而不需要變更親和性遮罩。 start /NODE 1 /AFFINITY 0x3 application1.exe start /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 執行 string 所指定的命令並結束命令字元視窗/K 執行 string 所指定的命令但留在命令提示字元視窗/S 修改對 /C 或 /K 後之字串的處理方式 (請參閱下面的資訊)/Q 關閉 echo/D 從登錄中停用 AutoRun 命令 (請參閱下面的資訊)/A 將內部命令的輸出以 ANSI 格式傳遞到 pipe 或檔案/U 將內部命令的輸出以 Unicode 格式傳遞到 pipe 或檔案/T:fg 設定前景/背景色彩 (如需詳細資訊,請參閱 COLOR /?)/E:ON 啟用命令延伸 (請參閱下面的資訊)/E:OFF 停用命令延伸 (請參閱下面的資訊)/F:ON 啟用檔案與目錄名稱完成字元 (請參閱下面的資訊)/F:OFF 停用檔案與目錄名稱完成字元 (請參閱下面的資訊)/V:ON 啟用延遲環境變數展開 (使用 ! 做為分隔字元)。例如,/V:ON 可以讓 !var! 在執行時展開變數 var。%var% 語法會在輸入時展開變數,這在 FOR 迴圈中 是完全不同的事。/V:OFF 停用延遲環境變數展開。請注意,對於 string,系統接受使用命令分隔字元 '&&&&' 分隔的多個命令 (若各命令都以引號括住)。此外,基於相容性原因,/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\\CommandProcessor\\AutoRun及/或HKEY_CURRENT_USER\\Software\\Microsoft\\CommandProcessor\\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 或 ERASE COLOR CD 或 CHDIR MD 或 MKDIR PROMPT PUSHD POPD SET SETLOCAL ENDLOCAL IF FOR CALL SHIFT GOTO START (也包括變更外部命令呼叫) ASSOC FTYPE若要取得特定詳細資料,請輸入命令名稱 /? 以檢視特定資訊。 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您可以為特定的 CMD.EXE 呼叫,以 /F:ON 或 /F:OFF 開關啟用或停用檔案名稱完成。 您可以啟用或停用在同一部電腦上所有 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 代表在含第 n 個後的其餘所有參數,其中 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.
0x400023A6SETLOCAL 命令的參數不正確 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 的變更如下:目前的目錄字串會被轉換成與磁碟上名稱相同大小寫的字串。所以如果磁碟上的目錄是 C:\\Temp 的話,CD C:\\TEMP 命令實際上會轉換為 CD C:\\Temp。CHDIR 命令不會將空格當成分隔字元,所以如果您要切換到含有空白字元的目錄時,就算您不使用引號來括住目錄名稱,也一樣可以用 CD 命令切換到該目錄。例如: 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如果擴充功能停用的話,您必須輸入前一種命令類型。 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 指定在等號右方的字串是一個要被運算的數字運算式。您可以用運算式進行簡單的運算,而且支援下列的運算子 (依照運算優先順序由高到低排列): () - 組成一群 ! ~ - - 一元運算符 * / %% - 數字運算子 + - - 數字運算子 - 邏輯位移 & - 位元運算 and ^ - 位元運算 exclusive or | - 位元運算 or = *= /= %%= += -= - 指定 &= ^= |= = , - 運算式分隔字元如果您使用了任何邏輯或餘數運算子,您必須將運算式兩邊括上引號。任何在運算式中非數字的字串會被當作環境變數,並且在使用前會先將這些環境變數轉換為數字。如果您所指定的環境變數名稱尚未在目前環境中定義,那麼它的值會被設為 0。這可以讓您用環境變數值來做運算,而不必打入所有的 %% 符號來取得它的值。如果 SET /A 是用指令檔之外的命令列執行,它會顯示運算式最後的數值。指定運算子需要有個環境變數在等號的左方。0x 字首在數字前方代表十六進位數字、0b 字首代表二進位數字或 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 環境變數展開,取代每個發現的 \"str1\" 與 \"str2\"的擴充結果。\"str2\" 可以是空白字串,這會從擴充輸出中刪除全部 \"str1\"。\"str1\" 可以用星號開始,這將會從擴充輸出的開頭開始,對應到從所有第一個發現含有str1 的項目。您也可以為擴充功能指定子字串。 %%PATH:~10,5%%這將會擴充 PATH 環境變數,然後只使用擴充結果的第 11 個(位移 10)字元後的 5 個字元如果長度未指定,將會預設為上次使用的變數值。如果數字(位移或長度)是負數,使用的數字將會是環境變數的長度加上位移或指定長度。 %%PATH:~-10%%將抽出 PATH 變數的最後 10 個字元。 %%PATH:~0,-2%%將抽出 PATH 變數的最後 2 個字元。 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 )這個例子永遠無法顯示 echo 訊息,因為在兩個 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 參數,它告訴 SHIFT 可以從第 n個引數開始轉移。n 介於 0 和 8 之間。例如: 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這會用指定的 arguments 來建立一個新的批次檔檔案內容,而且控制權會被傳到指定的 label 後的敘述。您必須經由達到批次指令檔的結尾兩次來 \"exit\" 兩次。第一次您讀入批次檔結尾時,控制權會回到 CALL描述的下一個敘述。而第二次則會結束批次檔的執行。請輸入 GOTO /?來獲得 GOTO :EOF 擴充命令的描述。 這個命令可以讓您從批次檔中\"return\" 。此外,批次檔參數的參考 (%%0,%%1 及其他) 已經做了如下的擴充: %%* 在批次檔中,這代表所有的參數 (e.g. %%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 - 搜尋 %%1 的 PATH 環境變數中所列的 目錄,並擴充至磁碟機代號和第一個 找到的路徑。 %%~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 /?。這些修改會持續到找到相符的 ENDLOCAL 命令為止,而不管它們在 SETLOCAL 命令之前的設定。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 位元的圖形介面應用程式時,CMD.EXE 並不會等應用程式停止才回到 命令提示。但是如果從指令檔中執行時,則不會有這樣的行為。當執行一個命令列時,其中第一個字串項是字串 \"CMD \" 且沒有副檔名或路徑指 示,則 \"CMD\" 會被 COMSPEC 環境變數的值所取代。這會避免由目前目錄中 選擇 CMD.EXE當執行一個命令列時,其中第一個字串項不包含副檔名時,則 CMD.EXE 使用 PATHEXT 環境變數的值來決定尋找哪個副檔名及用什麼順序來尋找。PATHEXT 變數的預設值為: .COM;.EXE;.BAT;.CMD 請注意這個語法和 PATH 變數相同,且用分號來隔開不同的項目。當尋找執行檔時,若是任何副檔名都不符合,則會試著尋找是否有符合的目錄名稱。如果有的話,START 命令會在那個路徑執行檔案管理員。若是從命令列執行,這就相當於執行 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] 如果 set 中包含萬用字元,則指定與目錄名稱相符, 而不是與檔案名稱相符。FOR /R [[drive:]path] %%variable IN (set) DO command [command-parameters] 在樹狀目錄中切換 [drive:] 路徑,並於樹狀目錄的每 一個目錄下執行 FOR 陳述式。如果未在 /R 之後指定 目錄規格,則採用目前的目錄。如果 set 只是單一句 點 (.) 字元,則它只會列舉樹狀目錄。FOR /L %%variable IN (start,step,end) DO command [command-parameters] set 是從開頭到結尾一次跳一步的連續數字。所以 (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] file-set 可以是一或多個檔案名稱。繼續進行 file-set 中的下個 檔案之前,都已開啟、讀取及處理過每個檔案。處理程序包括讀取 檔案、將它分割成獨立的文字行,然後將每一行剖析成零或多個語 法。使用已設成找到之語法字串的變數值,呼叫 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 格式代表 一個範圍,指定了第 m 個到第 n 個權 杖。如果 tokens= 字串的最後一個字 元是星號,則會配置一個額外的變數並 在最後一個語法被剖析後接收該行中的 其他文字。 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 檔案中的每一行,它不會去管以分號開頭的行數 ,直接將第 2 個及第 3 個語法從每一行傳到 for 主體,而其語法是 用逗號和/或空格分開的。請注意,for 主體陳述式參照 %%i 以取得第 二個語法,參照 %%j 以取得第三個語法,使用 %%k 取得第三個語法之 後的剩餘字串。因為檔案名稱含有空格,您必須用雙引號來括住檔案名 稱。要這樣使用雙引號,您必須使用 usebackq 參數。否則雙引號會被 解譯成用來定義一般文字。 使用 %%i 明白地在 for 陳述式中宣告,並透過 tokens= option 使用 %%j 作暗示性的宣告。您可以藉由 tokens= line 來指定最多 26 個語 法,前提是它宣告的變數不能高於字母 'z' 或 'Z'。請記住,FOR 變 數是單一字元的,同時在任一時間內,您不能同時使用超過 52 個 FOR 變數。 您也可以使用 FOR /F 命令在立即字串中剖析邏輯,方法是將括弧之間的 file-set 變成一個引號字串。它會被視為從檔案輸入的單行,並加 以剖析。 最後,您可以使用 FOR /F 命令來剖析一個命令的輸出。方法是將括弧 內的 file-set 變成單引號字串。它將被視為一個命令列,這個命令 行將會傳到子 CMD.EXE,而輸出將會被擷取到記憶體中,當成檔案來分 析。所以下列的範例: FOR /F \"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 - 搜尋所有列在 PATH 環境變數內的目錄且展開 %%I 為第一個找到的完全符合檔名。如果沒有定義環境 變數名稱或是搜尋找不到檔案,則這個修飾元會展 開為空字串。修飾元可以合併使用以獲得綜合的結果: %%~dpI - 只展開 %%I 為磁碟機代號與路徑 %%~nxI - 只展開 %%I 為檔名與副檔名 %%~fsI - 只展開 %%I 為含短檔名的完全路徑 %%~dp$PATH:I - 為 %%I 搜尋所有列在 PATH 環境變數內的目錄 且展開第一個找到的項目為磁碟機代號及路徑。 %%~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 命令 IF CMDEXTVERSION 數字命令 IF DEFINED 變數命令compare-op 可以是: EQU - 等於 NEQ - 不等於 LSS - 小於 LEQ - 小於或等於 GTR - 大於 GEQ - 大於或等於而如果指定 /I 參數,則執行區分大小寫的字串比對。此 /I 參數也可使用string1==string2 格式於 IF 命令。這些比對是通用的,因為在比對中,如果 string1 及 string2 兩者皆由十進位數字所構成,則字串將會轉換為數字,並執行數字的比對。CMDEXTVERSION 條件式的運作和 ERRORLEVEL 一樣,除非它和與擴充命令相關的內部版本號碼作比對。第一個版本為 1。若擴充命令大幅度地增強時就再加 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 變數的一個字串,前提是目前沒有名為 ERRORLEVEL 的環境變數,在這個情況下,您會得到它的值。使用此值和上面的數字比對運算元,您可以作下列的選擇: goto answer %%ERRORLEVEL%% :answer0 提示您輸入 Y 加以確定 :answer1 提示您輸入 N 加以否定您也可使用上面的數字比對: IF %%ERRORLEVEL%% LEQ 1 goto okay%%CMDCMDLINE%% 將擴充到比 CMD.EXE 的任何處理程序更早傳給 CMD.EXE 的原始命令列,前提是目前沒有名為 CMDCMDLINE 的環境變數,在這個情形下,您會得到它的值。%%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'UNC 路徑不可當作 CMD 目前的目錄。 '%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 檔案系統只支援 Last Write Times 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 [字串] 字串 指定命令提示字元視窗的標題。 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輸入新日期: (yy-mm-dd) %0 Enter the new date: (yy-mm-dd) %0
0x4000271E輸入新日期: (dd-mm-yy) %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 ******
0x40002728PUSHD 堆疊中已經存在太多目錄。 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 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 - 啟用已暫停的交易。對於 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交易識別碼: %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-tw_f4185f35af4ba2f6\
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:65536
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 (Traditional)
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-tw_fe6d0987e3ac64f1\

What is cmd.exe.mui?

cmd.exe.mui is Multilingual User Interface resource file that contain Chinese (Traditional) 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:0x404, 1200