|
Answer» I have a PROBLEM with 1 of the command file but I don’t know how to fix it yet. And here is the script that causes the problem Assume I have many .sql script files and I want to run in DIFFERENT schema of some database. The next statement will dump the script to a file call MyScripts.cmd and will run it when the process on line2 is done. MyScript.cmd looks PERFECT but the process stopped after line2 and line3 and line4 were skipped. Could you tell me why it skipped line 3 and 4?
Line1: Echo : Before create MyScript.cmd file > MyLog.log Line2: for %%f in (*.sql) do DoA.cmd %%f Line3: Echo : Ready to run my script file > MyLog.log Line4: MyScript.cmd
Quote from: jdang67 on April 26, 2010, 09:16:12 AM Could you tell me why it skipped line 3 and 4?
if you want to come BACK after DoA.cmd use CALL.
|