11

Something like

cp \\target_machine local_file.txt c:\dest_file.txt
Kenster
  • 8,620

2 Answers2

13

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.

Ash
  • 3,064
  • 4
  • 30
  • 31
1

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