假设出现以下错误是因为远程系统上不存在本地系统上的相同路径。
有没有办法指定保存在远程系统上的替代路径?
[root@linuxsystem mydir]# staf local FS COPY FILE /root/scripts/tests/script.bat TOMACHINE remoteVM
Error submitting request, RC: 17
Additional info
---------------
rootscriptstestsscript.bat
错误信息:
17 File Open Error
This indicates that there was an error opening the requested file.
Some possible explanations are that the file/path does not exist, contains invalid characters, or is locked.
Note: Additional information regarding which file could not be opened may be provided in the result passed back from the submit call.
找到正确的命令:
staf local FS COPY FILE /root/scripts/tests/script.bat TODIRECTORY "C:" TOMACHINE remoteVM