anchor.diff:  SET target2="..\..\Source\Dependencies\TimeSeriesFramework"
   SET source3="\\GPAWEB\NightlyBuilds\openHistorian\Beta\Libraries\*.*"
   SET target3="..\..\Source\Dependencies\TVA"
  -SET solution="..\..\Source\Synchrophasor.sln"
  -SET sourcetools=..\..\Source\Applications\openPDC\openPDCSetup\
  +SET source4="\\GPAWEB\NightlyBuilds\openPDC\Beta\Libraries\*.*"
  +SET target4="..\..\Source\Dependencies\TVA"
  +SET source5="\\GPAWEB\NightlyBuilds\openPDC\Beta\Libraries\*.*"
  +SET target5="..\..\Source\Dependencies\openPDC"
  +SET solution="..\..\Source\openPG.sln"
  +SET sourcetools=..\..\Source\Applications\openPG\openPGSetup\
   SET frameworktools=\\GPAWEB\NightlyBuilds\TVACodeLibrary\Beta\Tools\
   SET historiantools=\\GPAWEB\NightlyBuilds\openHistorian\Beta\Tools\
   SET /p checkin=Check-in updates (Y or N)? 
  
positive.code: ECHO Getting latest version...
  %tfs% get %target1% /version:T /force /recursive /noprompt
  %tfs% get %target2% /version:T /force /recursive /noprompt
  
  ECHO.
  ECHO Checking out dependencies...
  %tfs% checkout %target1% /recursive /noprompt
  %tfs% checkout %target2% /recursive /noprompt
  %tfs% checkout "%sourcetools%ConfigCrypter.exe" /noprompt
  %tfs% checkout "%sourcetools%ConfigurationEditor.exe" /noprompt
  %tfs% checkout "%sourcetools%HistorianPlaybackUtility.exe" /noprompt
  
  ECHO.
  ECHO Updating dependencies...
  XCOPY %source1% %target1% /Y
  XCOPY %source2% %target2% /Y
  XCOPY %source3% %target3% /Y
  XCOPY "%frameworktools%ConfigCrypter\ConfigCrypter.exe" "%sourcetools%ConfigCrypter.exe" /Y
  XCOPY "%frameworktools%ConfigEditor\ConfigEditor.exe" "%sourcetools%ConfigurationEditor.exe" /Y
  XCOPY "%historiantools%HistorianPlaybackUtility\HistorianPlaybackUtility.exe" "%sourcetools%HistorianPlaybackUtility.exe" /Y
  
negative.code: :Checkin
  ECHO.
  ECHO Checking in dependencies...
  %tfs% checkin %target1% /noprompt /recursive /comment:"Updated code library dependencies."
  %tfs% checkin %target2% /noprompt /recursive /comment:"Updated time-series framework dependencies."
  %tfs% checkin %target5% /noprompt /recursive /comment:"Updated openPDC dependencies."
  %tfs% checkin "%sourcetools%ConfigCrypter.exe" /noprompt /comment:"Updated code library tool: ConfigCrypter."
  %tfs% checkin "%sourcetools%ConfigurationEditor.exe" /noprompt /comment:"Updated code library tools: ConfigurationEditor."
  %tfs% checkin "%sourcetools%HistorianPlaybackUtility.exe" /noprompt /comment:"Updated openHistorian tool: HistorianPlaybackUtility."
  
  :Finalize
  ECHO.
  