2012-04-30 15 views

回答

7

在Powerhsell more僅僅是一個定義如下功能:

param([string[]]$paths) 
$OutputEncoding = [System.Console]::OutputEncoding 

if($paths) 
{ 
    foreach ($file in $paths) 
    { 
     Get-Content $file | more.com 
    } 
} 
else 
{ 
    $input | more.com 
} 

所以在命令行中,你應該能夠做到more.com /?,看看幫助,在它下面的文字,這就是你正在查找:

If extended features are enabled, the following commands 
are accepted at the -- More -- prompt: 

P n  Display next n lines 
S n  Skip next n lines 
F  Display next file 
Q  Quit 
=  Show line number 
?  Show help line 
<space> Display next page 
<ret> Display next line