批處理指令碼 - MORE



此批處理命令一次顯示一個螢幕的檔案或多個檔案的內容。

語法

More [filename]

其中 filename 為需要一次顯示一個螢幕其內容的檔案。

示例

@echo off
More C:\tp\lists.txt
Directory of C:\Program Files

輸出

上述命令將一次顯示一個螢幕檔案 lists.txt 的內容。以下是輸出示例。請注意螢幕末尾的 -- More (12%) –。要繼續並顯示檔案剩餘內容,你需要輸入一個鍵。

12/22/2015 02:31 AM   <DIR>       .
12/22/2015 02:31 AM   <DIR>       ..
12/15/2015 11:14 PM   <DIR>       Application Verifier
12/18/2015 05:06 PM   <DIR>       Bonjour
12/26/2015 08:01 PM   <DIR>       CCleaner
12/18/2015 05:05 PM   <DIR>       Common Files
12/17/2015 11:04 AM   <DIR>       Git
12/15/2015 11:09 PM   <DIR>       IIS
12/15/2015 11:10 PM   <DIR>       IIS Express
12/15/2015 10:16 PM   <DIR>       Intel
03/18/2014 02:24 AM   <DIR>       Internet Explorer
12/18/2015 05:06 PM   <DIR>       iPod
12/18/2015 05:06 PM   <DIR>       iTunes
12/15/2015 11:16 PM   <DIR>       Microsoft Identity Extensions
12/15/2015 11:46 PM   <DIR>       Microsoft Office
12/22/2015 02:31 AM   <DIR>       Microsoft Silverlight
12/15/2015 11:15 PM   <DIR>       Microsoft SQL Server
12/15/2015 11:15 PM   <DIR>       Microsoft SQL Server Compact Edition
12/15/2015 10:59 PM   <DIR>       Microsoft Visual Studio 12.0
-- More (12%) --
batch_script_commands.htm
廣告