暂停 GACUTIL.exe 列表
Pause the GACUTIL.exe listing
在我的 Windows 系统上,我的 GAC 中有 3000 多个注册库。当我使用 gacutil /l 时,列表太大而无法放入我的命令输出 window。我需要能够浏览以查看我的图书馆是否在列表中,有没有办法暂停列表或将其保存到文件中。
如果你这样做 gacutil /l > output.txt
它会将命令的输出写入你当前所在文件夹中名为 output.txt
的文件。
您可以通过指定程序集名称来过滤列表。
例如,
GacUtil /l System.Data.Linq
列出我系统上名为 "System.Data.Linq" 的 2 个程序集,版本 3.5 和版本 4.0。
人们如何忘记。您可以将任何命令的输出通过管道传输到 more
命令。然后对输出进行分页:
gacutil /l | more
每次满屏都会提示--more--
。按space查看下一页。
使用 more
也有很多选项(来自 more /?
的输出):
Displays output one screen at a time.
MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [drive:][path]filename
command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]
MORE /E [/C] [/P] [/S] [/Tn] [+n] [files]
[drive:][path]filename Specifies a file to display one
screen at a time.
command-name Specifies a command whose output
will be displayed.
/E Enable extended features
/C Clear screen before displaying page
/P Expand FormFeed characters
/S Squeeze multiple blank lines into a single line
/Tn Expand tabs to n spaces (default 8)
Switches can be present in the MORE environment
variable.
+n Start displaying the first file at line n
files List of files to be displayed. Files in the list
are separated by blanks.
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
在我的 Windows 系统上,我的 GAC 中有 3000 多个注册库。当我使用 gacutil /l 时,列表太大而无法放入我的命令输出 window。我需要能够浏览以查看我的图书馆是否在列表中,有没有办法暂停列表或将其保存到文件中。
如果你这样做 gacutil /l > output.txt
它会将命令的输出写入你当前所在文件夹中名为 output.txt
的文件。
您可以通过指定程序集名称来过滤列表。
例如,
GacUtil /l System.Data.Linq
列出我系统上名为 "System.Data.Linq" 的 2 个程序集,版本 3.5 和版本 4.0。
人们如何忘记。您可以将任何命令的输出通过管道传输到 more
命令。然后对输出进行分页:
gacutil /l | more
每次满屏都会提示--more--
。按space查看下一页。
使用 more
也有很多选项(来自 more /?
的输出):
Displays output one screen at a time.
MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [drive:][path]filename
command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]
MORE /E [/C] [/P] [/S] [/Tn] [+n] [files]
[drive:][path]filename Specifies a file to display one
screen at a time.
command-name Specifies a command whose output
will be displayed.
/E Enable extended features
/C Clear screen before displaying page
/P Expand FormFeed characters
/S Squeeze multiple blank lines into a single line
/Tn Expand tabs to n spaces (default 8)
Switches can be present in the MORE environment
variable.
+n Start displaying the first file at line n
files List of files to be displayed. Files in the list
are separated by blanks.
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