小编cle*_*ieu的帖子

Powershell,以交互方式调用静态方法

我正坐在PowerShell命令提示符下并关注http://technet.microsoft.com/en-us/library/dd347632.aspx

PS C:\> [System.Math]::Sqrt (9)
Unexpected token '(' in expression or statement.
At line:1 char:22
+ [System.Math]::Sqrt ( <<<< 9)
  + CategoryInfo          : PArserError: ((:String) [], ParentContainsErrorRecordException
  + FullyQualifiedErrorId : UnexpectedToken
Run Code Online (Sandbox Code Playgroud)

我被欺骗了还是教程给了我一些语法错误?

我如何做一个基本的事情,比如调用静态方法?

powershell powershell-2.0

3
推荐指数
1
解决办法
276
查看次数

标签 统计

powershell ×1

powershell-2.0 ×1