本帖最后由 ArdentMan 于 2011-7-19 19:52 编辑
请看看我的代码是不是你描述的意思,上面没注意你文件名没加.csv后缀:- @Echo Off
- For /F "tokens=1,2 delims=|" %%a In (rowcount.csv) Do (
- Set "Flag="
- For /F "delims=:" %%c In ('Findstr /n .* "%%a.csv"') Do If "%%b" EQU "%%c" Set "Flag=a"
- If Not Defined Flag (
- For /L %%d In (1,1,3) Do (
- If Not Defined Flag (
- Start /wait 这里自己写出SQL运行procedure的语句,我不知道的
- For /F "delims=:" %%e In ('Findstr /n .* "%%a.csv"') Do If "%%b" EQU "%%e" Set "Flag=a"
- )
- )
- )
- )
复制代码
|