2

I am tying to copy file from one machine to another possibly a batch script so that I can automate

I am trying something like this.

copy C:\Users\Administrator\Desktop\result.txt \\(IP address of remote machine)\C:\folder1\result.txt
Hackoo
  • 18,337
  • 3
  • 40
  • 70
icecool10
  • 41
  • 2
  • 11
  • can you provide the error message ? I woud say that a second `\\` is missing at start of the destination path. – C.LECLERC Oct 05 '16 at 13:59
  • network path was not found is what I see @C.LECLERC – icecool10 Oct 05 '16 at 14:08
  • 3
    Are you able to access the destination folder with windows folder browser ? according to http://stackoverflow.com/questions/606534/opening-a-remote-machines-windows-c-drive specified path has an incorrect syntax (missing `$`) – C.LECLERC Oct 05 '16 at 14:14
  • 2
    `\\servername\sharename\folder\file.ext` **NOTE** NO SEMICOLONS. `\\127.0.0.1\C$\Users\Administrator\Desktop\result.txt`. `C$` is a share that admins only can use and is auto generated by windows. `$` means it's a hidden share. –  Oct 05 '16 at 16:10
  • 2
    If any spaces in the name enclose with quotes. `copy "C:\Users\Administrator\Desktop\result.txt" "\\127.0.0.1\C$\folder1\result.txt"` –  Oct 05 '16 at 16:16

0 Answers0