![](/img/trans.png)
[英]Best way to copy a file from Windows machine to Linux machine using java
[英]Copy file from linux to remote windows machine using staf
假定以下錯誤是因為遠程系統上不存在本地系統上的相同路徑。
有沒有一種方法可以指定要保存在遠程系統上的替代路徑?
[root@linuxsystem mydir]# staf local FS COPY FILE /root/scripts/tests/script.bat TOMACHINE remoteVM
Error submitting request, RC: 17
Additional info
---------------
\root\scripts\tests\script.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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.