这就是我通过运行命令的方式staf
,但它似乎没有列出C:\Program Files
即使文件夹实际存在下的文件和文件夹..
[root@server ~]# winPath="C:\Program Files"
[root@server ~]# staf remoteServer.com PROCESS START SHELL COMMAND 'dir "$winPath"' WAIT RETURNSTDOUT STDERRTOSTDOUT
Response
--------
{
Return Code: 1
Key : <None>
Files : [
{
Return Code: 0
Data : Volume in drive C has no label.
Volume Serial Number is C052-46E0
Directory of C:\Windows\system32
File Not Found
}
]
}