我遇到问题。当我运行一个命令:获取内容的PowerShell问题
powershell -command "gc C:\Program Files\Microsoft SQLServer\MSSQL.1\MSSQL\LOG\ERRORLOG -totalcount 5
有一个错误:
"Get-Content : A positional parameter cannot be found that accepts argument 'Files\Microsoft'. At line:1 char:3 + gc <<<< C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG -to talcount 5 + CategoryInfo : InvalidArgument: (:) [Get-Content], ParameterBindingException +FullyQualifiedErrorId:PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetContentCommand"
你能帮助我吗?
非常感谢! – Jade 2014-10-01 13:58:46