Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive.Azure/CopyIfNewer.bat @ 8191

Last change on this file since 8191 was 7019, checked in by spimming, 13 years ago

#1680: manage multiple app.config files with pre-build event

File size: 415 bytes
Line 
1@echo off
2echo Comparing two files: %1 with %2
3
4if not exist %1 goto File1NotFound
5if not exist %2 goto File2NotFound
6
7fc %1 %2
8if %ERRORLEVEL%==0 GOTO NoCopy
9
10echo Files are not the same.  Copying %1 over %2
11copy %1 %2 /y & goto END
12
13:NoCopy
14echo Files are the same.  Did nothing
15goto END
16
17:File1NotFound
18echo %1 not found.
19goto END
20
21:File2NotFound
22copy %1 %2 /y
23goto END
24
25:END
26echo Done.
Note: See TracBrowser for help on using the repository browser.