在我的Windows系统中,我的GAC中有3000多个注册图书馆。当我使用gacutil /l时,列表太大,不适合我的命令输出窗口。我需要能够浏览看看我的库是否在列表中,是否有办法暂停列表或将其保存到文件中。
发布于 2018-10-11 06:09:30
人们是如何忘记的。您可以将任何命令的输出输送到more命令。然后对输出进行分页:
gacutil /l | more每次填充屏幕时,它都会提示使用--more--。按空格看下一页。
使用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发布于 2018-10-11 03:37:47
如果执行gacutil /l > output.txt,它将将命令的输出写入当前所在文件夹中名为output.txt的文件中。
发布于 2018-10-11 03:43:50
可以通过指定程序集名称来筛选列表。
例如,
GacUtil /l System.Data.Linq
列出我的系统上的两个名为"System.Data.Linq“的程序集,版本3.5和版本4.0。
https://stackoverflow.com/questions/52751671
复制相似问题