首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >暂停GACUTIL.exe清单

暂停GACUTIL.exe清单
EN

Stack Overflow用户
提问于 2018-10-11 03:19:48
回答 3查看 89关注 0票数 1

在我的Windows系统中,我的GAC中有3000多个注册图书馆。当我使用gacutil /l时,列表太大,不适合我的命令输出窗口。我需要能够浏览看看我的库是否在列表中,是否有办法暂停列表或将其保存到文件中。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2018-10-11 06:09:30

人们是如何忘记的。您可以将任何命令的输出输送到more命令。然后对输出进行分页:

代码语言:javascript
复制
gacutil /l | more

每次填充屏幕时,它都会提示使用--more--。按空格看下一页。

使用more也有很多选项(来自more /?的输出):

代码语言:javascript
复制
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
票数 2
EN

Stack Overflow用户

发布于 2018-10-11 03:37:47

如果执行gacutil /l > output.txt,它将将命令的输出写入当前所在文件夹中名为output.txt的文件中。

票数 2
EN

Stack Overflow用户

发布于 2018-10-11 03:43:50

可以通过指定程序集名称来筛选列表。

例如,

GacUtil /l System.Data.Linq

列出我的系统上的两个名为"System.Data.Linq“的程序集,版本3.5和版本4.0。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52751671

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档