2
我正在使用以下脚本来执行一堆.sql语句。如何对批处理文件的输入进行排序
@echo off
ECHO %USERNAME% started the batch process at %TIME% >output.txt
for %%s in (*.sql) do (
sqlcmd.exe -S.\ -E -i "%%s" >>output.txt
)
pause
但是,我想确保文件排序(名称),因为我不认为我可以保证列表的顺序。