anchor.diff:  %tfs% checkout "%sourcetools%DataMigrationUtility.exe" /noprompt
   %tfs% checkout "%sourcetools%HistorianPlaybackUtility.exe" /noprompt
   %tfs% checkout "%sourcetools%HistorianView.exe" /noprompt
  +%tfs% checkout "%targetschema%" /recursive /noprompt
   
   ECHO.
   ECHO Updating dependencies...
  -XCOPY %source1% %target1% /Y /U
  +XCOPY %source1% %target1% /Y /E
   XCOPY "%frameworktools%ConfigCrypter\ConfigCrypter.exe" "%sourcetools%ConfigCrypter.exe" /Y
   XCOPY "%frameworktools%ConfigEditor\ConfigEditor.exe" "%sourcetools%ConfigurationEditor.exe" /Y
   XCOPY "%frameworktools%DataMigrationUtility\DataMigrationUtility.exe" "%sourcetools%DataMigrationUtility.exe" /Y
   XCOPY "%frameworktools%HistorianPlaybackUtility\HistorianPlaybackUtility.exe" "%sourcetools%HistorianPlaybackUtility.exe" /Y
   XCOPY "%frameworktools%HistorianView\HistorianView.exe" "%sourcetools%HistorianView.exe" /Y
  +
  +ECHO.
  +ECHO Updating database schema defintions...
  +FOR /R "%sourceschema%" %%x IN (GSFSchema.*) DO REN "%%x" "SIEGate.*"
  +FOR /R "%sourceschema%" %%x IN (GSFSchema-InitialDataSet.*) DO REN "%%x" "SIEGate-InitialDataSet.*"
  +FOR /R "%sourceschema%" %%x IN (GSFSchema-SampleDataSet.*) DO REN "%%x" "SIEGate-SampleDataSet.*"
  +MOVE /Y "%sourceschema%\*.*" "%targetschema%\"
  +MOVE /Y "%sourceschema%\MySQL\*.*" "%targetschema%\MySQL\"
  +MOVE /Y "%sourceschema%\Oracle\*.*" "%targetschema%\Oracle\"
  +MOVE /Y "%sourceschema%\SQL Server\*.*" "%targetschema%\SQL Server\"
  +MOVE /Y "%sourceschema%\SQLite\*.*" "%targetschema%\SQLite\"
  +%replace% /r /v "%targetschema%\*.sql" GSFSchema SIEGate
  +%replace% /r /v "%targetschema%\*SampleDataSet.sql" 8500 8505
  +%replace% /r /v "%targetschema%\*SampleDataSet.sql" 6165 6170
  +%replace% /r /v "%targetschema%\*SampleDataSet.sql" "e7a5235d-cb6f-4864-a96e-a8686f36e599" "d1ebffbb-d318-463f-9822-394fd0e968b0"
  +%replace% /r /v "%targetschema%\*db-update.bat" GSFSchema SIEGate
  +SET cwd=%CD%
  +CD %targetschema%\SQLite
  +ECHO "N" | db-update.bat
  +CD "%cwd%"
   
   :: ECHO.
   :: ECHO Building solution...
  
positive.code: :Checkin
  ECHO.
  ECHO Checking in dependencies...
  %tfs% checkin %target1% /noprompt /recursive /comment:"VS2012: Updated grid solutions framework dependencies."
  %tfs% checkin "%sourcetools%ConfigCrypter.exe" /noprompt /comment:"VS2012: Updated grid solutions framework tool: ConfigCrypter."
  %tfs% checkin "%sourcetools%ConfigurationEditor.exe" /noprompt /comment:"VS2012: Updated grid solutions framework tool: ConfigurationEditor."
  %tfs% checkin "%sourcetools%DataMigrationUtility.exe" /noprompt /comment:"VS2012: Updated grid solutions framework tool: DataMigrationUtility."
  %tfs% checkin "%sourcetools%HistorianPlaybackUtility.exe" /noprompt /comment:"VS2012: Updated openHistorian tool: HistorianPlaybackUtility."
  %tfs% checkin "%sourcetools%HistorianView.exe" /noprompt /comment:"VS2012: Updated openHistorian tool: HistorianView."
  
  :Finalize
  ECHO.
  
negative.code: 
  SET vs="%VS110COMNTOOLS%\..\IDE\devenv.com"
  SET tfs="%VS110COMNTOOLS%\..\IDE\tf.exe"
  SET replace="\\GPAWEB\NightlyBuilds\Tools\ReplaceInFiles\ReplaceInFiles.exe"
  SET source1="\\GPAWEB\NightlyBuilds\GridSolutionsFramework\Beta\Libraries\*.*"
  SET target1="..\..\Source\Dependencies\GSF"
  SET sourceschema=..\..\Source\Dependencies\GSF\Data
  SET targetschema=..\..\Source\Data
  SET solution="..\..\Source\SIEGate.sln"
  SET sourcetools=..\..\Source\Applications\SIEGate\SIEGateSetup\
  SET frameworktools=\\GPAWEB\NightlyBuilds\GridSolutionsFramework\Beta\Tools\
  