中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 22:48
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Please help take a look, where is the mistake?!!
Printable Version  840 / 2
Floor1 kikok Posted 2007-01-02 01:54
新手上路 Posts 2 Credits 6
@echo off
cmd /v:no
for /l %%i in (1,1,120) do (
set aa=00
if %%i GTR 9 set aa=0
if %%i GEQ 100 echo IBVolumectl image f:\user\%%i.ibv 0 . f:\game.img>>ibv.bat
if %%i LEQ 99 echo IBVolumectl image f:\user\!aa!%%i.ibv 0 . f:\game.img>>ibv.bat


The problem is that after running it, the for loop statement doesn't execute...
Floor2 ccwan Posted 2007-01-02 02:07
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
cmd /v:no is suitable for use on the command line; in a batch file use setlocal enabledelayedexpansion
For details, see post #2 at the link below
http://www.cn-dos.net/forum/viewthread.php?tid=20733&fpage=1&highlight=%E5%8F%98%E9%87%8F%E5%BB%B6%E8%BF%9F
Floor3 kikok Posted 2007-01-02 02:34
新手上路 Posts 2 Credits 6
Many thanks! It's been solved.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023