日期:2014-05-17 浏览次数:20515 次
@echo off REM.-- Prepare the Command Processor -- SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION ::: -- Version History ? ::: XX.XXX YYYYMMDD Author Description SET "version=01.00.00" &:20090521 s.s. initial version ::: -- Set the window title -- SET "title=%~nx0 - version %version%" TITLE %title% SET "mysqlroot=D:\projects\xyz\sql" for /f %%a in (%mysqlroot%\Update.cfg) do call :upgrade %%a goto :eof :upgrade REM. no check for commented lines. use file not found instead. sqlcmd -S mysqlserver -U mysaadmin -P mypasswd -d mymaster -i %mysqlroot%\%1 -o %mysqlroot%\log_%1.log :eof ::: -- End of application -- ::: ECHO.&PAUSE&GOTO:EOF ::: -- End of application --