Copy file from linux to remote windows machine using staf

Assumming the following error is because the same path on local system does not exist on the remote system. Is there a way to specify an alternative path to save on remote system?

[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

Error information:

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. 

Answers


Found correct command:

staf local FS COPY FILE /root/scripts/tests/script.bat TODIRECTORY "C:\" TOMACHINE remoteVM

Need Your Help

When working with Core Data, do you keep a non managed object class, and a managed object version of it

ios objective-c core-data nsmanagedobject managedobjectcontext

I've always wondered when working with core data if there is any value to have model classes that aren't managed objects? If instead to give those objects persistence, your data manager class that

Python Mechanize Module Encryption

python encryption https mechanize mechanize-python

If I am using a python script with mechanize to fill out forms on websites (such as login information) should I be worried about encryption? Is there anything I need/could do to ensure that the pas...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.