|
Answer» I want to create a batch file that will COPY 3 files from one computer to another on a network. The files are located on a PC named counter and I would like to copy them to a PC named office1. The files are located in a folder called huggins in the root of the C drive. The files that I would like to copy are called merprice.txt, merstock.txt & mersuper.txt. I have tried the following without any luck.
@echo off copy \\counter\c:\huggins\merprice.txt \\office1\c:\huggins copy \\counter\c:\huggins\merstock.txt \\office1\c:\huggins copy \\counter\c:\huggins\mersuper.txt \\office1\c:\huggins pause
Any help would be greatly appreciated. Thanks :-?@echo off copy c:\huggins\merprice.txt \\office1\c:\huggins copy c:\huggins\merstock.txt \\office1\c:\huggins copy c:\huggins\mersuper.txt \\office1\c:\huggins should work but \\office1\c:\huggins will need to have write perms enabled.
Why not just make \\office1\c:\huggins a network folder on [/b]\\counter[/b]?It sounds like you want to copy from 1 computer to a 2nd computer USING a 3rd computer? What OS or version(s) of Windows are they running? If Windows 2000 or newer on all 3 computers, AND you have proper PERMISSIONS set up, try the following: Code: [Select]copy \\counter\c$\huggins\merprice.txt \\office1\c$\huggins copy \\counter\c$\huggins\merprice.txt \\office1\c$\huggins copy \\counter\c$\huggins\merprice.txt \\office1\c$\hugginsIf it is an older version of Windows, or LANMan running under DOS, or something like that, then you will have to share your "Huggins" directory first (or share the root of C: ) and change the copy accordingly.
If this does not work, please post more information.
|