Jad*_*ade 2 windows powershell remote-access file-get-contents windows-console
我有一个问题.当我运行命令时:
powershell -command"gc C:\ Program Files\Microsoft SQLServer\MSSQL.1\MSSQL\LOG\ERRORLOG -totalcount 5
有一个错误:
"Get-Content:找不到接受参数'Files\Microsoft'的位置参数.在行: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"
你能帮帮我吗?
当它包含空格时,始终将引号放在引号之间.
Get-Content -Path "C:\Program Files\Microsoft SQLServer\MSSQL.1\MSSQL\LOG\ERRORLOG" -TotalCount 5
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8320 次 |
| 最近记录: |