Computing.Net > Forums > Disk Operating System > Batch File Comparison

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File Comparison

Reply to Message Icon

Name: CGB
Date: May 18, 2000 at 07:13:45 Pacific
Comment:

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.LOG

And 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.LOG

His 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?



Sponsored Link
Ads by Google

Response Number 1
Name: john westerman
Date: May 18, 2000 at 08:41:56 Pacific
Reply:

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.


0

Response Number 2
Name: CGB
Date: May 18, 2000 at 11:25:21 Pacific
Reply:

John -- Thanks for the input!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch File Comparison

HELP ME WITH DOS BATCH FILES LINES PLEASE www.computing.net/answers/dos/help-me-with-dos-batch-files-lines-please/2496.html

file comparison in batch file www.computing.net/answers/dos/file-comparison-in-batch-file/558.html

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html