简体   繁体   中英

how to use xcopy to append to a file in remote machine?

I am using psexec to connect to remote windows machine and xcopy to copy few files and run the batch files present in remote machine. However the xcopy overwrites the contents of the file in the remote machine. How to use xcopy or something similar to append to files in the remote windows machine?

Or is it possible to copy a file from remote windows machine to local using xcopy or similar?

Note : the remote machine is windows and not running either ftp or any other service.

Thanks
Nohsib

You could try PowerShell 2.0 remoting. Should fit most of your needs.

Have a look at Robocopy - http://ss64.com/nt/robocopy.html

It is the Windows equivalent of Rsync.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM