DOS command for copying file from one computer to another

  • Thread starter Thread starter SteveC
  • Start date Start date
S

SteveC

I need the dos command for copying a file from one computer to another

copy //mycomputer/directory/file.wht c:/directory/file.wht

This works fine on mycomputer but when I try it from another computer, it
won't work. I guess I could say which computer I mean for the destination
file but I need it to work on whatever computer the batch file is run from.

Any pointers?
 
SteveC said:
I need the dos command for copying a file from one computer to another

copy //mycomputer/directory/file.wht c:/directory/file.wht

This works fine on mycomputer but when I try it from another computer, it
won't work. I guess I could say which computer I mean for the destination
file but I need it to work on whatever computer the batch file is run from.

Try including the share name in the source argument.

copy \\<server name>\<share name>\directory\file.wht c:\directory\file.wht

If no yoy, use <dot> signifying the current dir as destination at the end, and
let the system resolve it.

c:
cd \directory
copy \\<server name>\<share name>\directory\file.wht . (that's a .)
 
Have you tried opening 2 Explorer windows? You can right click on your Task
Bar and choose to Tile Windows horizontally (or vertically). In one window
be in your computer. In the other window navigate to the other computer.
Right click what you want from the source and choose Copy. Go to the other
window, right click and choose Paste. That really speeds things up when you
have lots of material to move.

You can also use Click/Drag techniques but I recommend using the right mouse
button so that when you release the button in your target area the drop down
menu will allow you to choose whether you want to Move, Copy, etc.
 
Back
Top