Skip to content

Instantly share code, notes, and snippets.

@ebot
Created January 13, 2012 18:03
Show Gist options
  • Save ebot/1607817 to your computer and use it in GitHub Desktop.
Save ebot/1607817 to your computer and use it in GitHub Desktop.
Changed the year wildcard
@echo off
mysql -uuser -ppass dbname -e "Update Files Set Name = '*%date:~-2%' Where JobId = 1059;"
Echo Finished updating the year to %date:~-2%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment