要求:set.ini文本第二列必须首字符不为0
@echo off
set /p SS=请输入:
for /f "tokens=1,2 delims=-" %%a in ("%SS%") do for /f "usebackq tokens=1,2" %%c in ("d:\ssi\set.ini") do if "%%b"=="" (if %%a==%%d call:n %%c) else if %%d geq %%a if %%d leq %%b call:n %%c
pause&exit
:n
set n=000%1
cd.>"e:\user\%n:~-4%.frt"
Last edited by Hanyeguxing on 2010-5-6 at 08:04 ]