让结果不再显示GAC信息
Let the result no longer display GAC information
我使用下面的代码运行 powershell中的ironpython代码,但是输出的结果总是显示GAC信息。看图片
[reflection.assembly]::LoadFrom("C:\Program Files\IronPython 2.7\IronPython.dll")
$py = [ironpython.hosting.python]::CreateEngine()
$py.Execute("print 'IronPython Engine loaded.'")
有什么方法可以隐藏吗?不想每次都显示
您可以将第一个命令通过管道传输到 Out-Null:
[reflection.assembly]::LoadFrom("C:\Program Files\IronPython 2.7\IronPython.dll") | Out-Null
$py = [ironpython.hosting.python]::CreateEngine()
$py.Execute("print 'IronPython Engine loaded.'")
禁止命令的所有输出。
我使用下面的代码运行 powershell中的ironpython代码,但是输出的结果总是显示GAC信息。看图片
[reflection.assembly]::LoadFrom("C:\Program Files\IronPython 2.7\IronPython.dll")
$py = [ironpython.hosting.python]::CreateEngine()
$py.Execute("print 'IronPython Engine loaded.'")
有什么方法可以隐藏吗?不想每次都显示
您可以将第一个命令通过管道传输到 Out-Null:
[reflection.assembly]::LoadFrom("C:\Program Files\IronPython 2.7\IronPython.dll") | Out-Null
$py = [ironpython.hosting.python]::CreateEngine()
$py.Execute("print 'IronPython Engine loaded.'")
禁止命令的所有输出。