cp \\target_machine local_file.txt c:\dest_file.txt
Assuming 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.
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
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
system cannot find path specified error
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago