Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi All,
I've created a nice little Batch file which works like a dream. I'm bascially connecting to a machine remotely and zipping up a log file and then copying it locally. Pretty simple stuff (even though it took me weeks).
My question is, can I copy 1 source file to 2 destinations.
I've got this
copy \\%machine%\D$\tmi\mfws\logs\newlog.zip "c:\new\logs\"which works fine, but I cannot add this,
copy \\%machine%\D$\tmi\mfws\logs\newlog.zip "c:\new\logs\" + "z:\logs1"
I've tried a number of varriations however I cannot seem to copy to more than 1 destination. Help as ever is appreciated.

You need to use the copy command twice:
copy \\%machine%\D$\tmi\mfws\logs\newlog.zip C:\new\logs
copy C:\new\logs\newlog.zip z:\logs1

Hi klint,
Thought you got lost.
=====================================
If at first you don't succeed, you're about average.M2

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |