Tuesday, February 03, 2009

Run bunch of scripts in a batch

simple example for reference.

in batch file:
FOR %%q IN (*.sql) DO isql -d db -U sa -P xxxx -i %%q -o %%q.log
in command line directly:
FOR %q IN (*.sql) DO isql -d db -U sa -P xxxx -i %q -o %q.log

No comments: