【发布时间】:2014-06-16 06:19:17
【问题描述】:
我想写一个C# 之类的方法
public bool PowershellExists()
{
// Returns true if PowerShell exists on the machine, else false.
}
【问题讨论】:
-
blogs.msdn.com/b/powershell/archive/2009/06/25/… +
Registry.GetValue -
是的,但我的意思是 C# 方法。
-
检查注册表是一种 C# 方法。 StackOverflow 不是将文档转换为代码的工具。如果您不了解注册表或如何访问它,您应该研究一下。
-
所以不是没用?
标签: c# powershell