Tuesday, August 10, 2010

Agile Update Script

Of course one of the first things I wanted to try on 2010 was the agile update script written by Hakan Eskici, and get one of our projects into Agile 5.0.

We had problems with the script as we are a non en-us locale. This was commented in Hakan's script.

I updated our copy of the script and it fixed the issue
  • Open the EnableFeatures.bat script
  • Immediately after the comment "REM The below line will only work on en-us locale" modify the code to read:

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do SET myDate=%%d-%%e-%%f

for /f "tokens=1-5 delims=:" %%d in ("%time%") do SET myTime=%%d-%%e

SET BackupName=%myDate%-%myTime%

echo %BackupName%

  • Save and you are done, the script is now a little more non en-us friendly.

No comments:

Post a Comment