Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a friend who's running these two batch files, one right after the other:
COPY \\INNCNT07\ARCSERVE$\LOG\ARCSERVE.LOG \\INNCNT07\ARCSERVE$\LOG\ARCSERVE.TMP
COPY \\INNCNT07\ARCSERVE$\LOG\ARCSERVE.LOG U:ARCSERV$.LOG
G:\UTILS\LL2 U:ARCSERV$.LOG
DEL U:ARCSERV$.LOG
DEL \\INNCNT07\ARCSERVE$\LOG\ARCSERVE.LOGAnd the second...
COPY \\INNCNT09\ARCSERVE$\LOG\ARCSERVE.LOG \\INNCNT09\ARCSERVE$\LOG\ARCSERVE.TMP
COPY \\INNCNT09\ARCSERVE$\LOG\ARCSERVE.LOG U:ARCSERV$.LOG
G:\UTILS\LL2 U:ARCSERV$.LOG
DEL U:ARCSERV$.LOG
DEL \\INNCNT09\ARCSERVE$\LOG\ARCSERVE.LOGHis concern is that after the second batch file runs, the contents of the ARCSERV$.LOG file only have the files from the INNCNT09 server, not the INNCNT07.
I might be a little rusty on batch files, but it seems to me that the second batch file will overwrite the file in question. Am I right, or is there something else wrong here?

no - you are correct. The first batch file is identical to the second except the names (INNCNT07 and INNCNT09) are changed therefore the second one is overwriting the first.

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

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