Something like
cp \\target_machine local_file.txt c:\dest_file.txt
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityAssuming you have appropriate permissions, you can do it like this:
copy local_file.txt \\target_machine\c$\dest_file.txt
Use "c$" to reference C drive on the remote machine.
net use
to provide the authentication to the share before copying (eg: stackoverflow.com/questions/3854026). Not sure if that works with the c$ notation above though, you'd have to try it and see.
It's like this:
copy c:\local_path\local_file.txt \\target_machine\destination_path\destination_file.txt
If you have \\target_machine\destination_path\
mapped to a network drive, say, Z:
then the command becomes
copy c:\local_path\local_file.txt Z:\destination_file.txt
The network name cannot be found
then it's a network problem, either you don't have permissions or the firewall is blocking your requests
system cannot find path specified error
. Double backslash is used for accessing network shares with UNC naming scheme. Yes, this works on my network, I have couple of scripts where I make use of this ( scripts are to export data, compress them and move them to NAS). I suspect permissions problems. Are the machines you want to copy on different domains/workgroups ?