|
原帖由 alexo 于 2009-8-19 22:18 发表 
汗,有可能你用的是前两天的一个0815版,那个版本里步步为营是有问题,当时没注意
这两天也许还会更新下
楼主请教个问题 步步为营好是好但处理的映像个数不多 我发现把bbwy.cmd里的参数改成如下的可以处理到更多的映像
:xjszbs
setlocal EnableDelayedExpansion
set /a bsgd=%WimNum%*23+125
Set readbt=%wim_hd%..%wimname%
Copy "%bblj%\选择标识.ini" %temp_files%\选择标识.ini
If /I "%kjwim%"=="ckxxxx" (Set xsys=LABE) Else (Set xsys=chek)
set ee=12
Goto xjszbs1
:xjszbs1
Set bs_ms=
Set /a bs_xh+=1
set /a varr+=1
set /a aa+=1
set /a ee=%ee%+18
%i_magex% /info "%wimfiles%" %bs_xh% > %temp_files%\info.txt
Find /n "<NAME>" < %temp_files%\info.txt >%temp_files%\info1.txt
Set file=%temp_files%\info1.txt
Set "file=%file:"=%"
For %%i in ("%file%") do Set file=%%~fi
Set replaced=NAME
Set all=
For /f "delims=" %%i in ('type "%file%"') do (
Set str=%%i
Set "str=!str:%replaced%=%all%!"
Echo !str!>>%temp_files%\info.txt
)
For /F "delims=<> tokens=2" %%m In (%temp_files%\info.txt) Do (Set bs_ms=%%m)
If "%bs_ms%"=="" Set bs_ms=……
Set bs_ms_ini=镜像“%bs_xh%”:描述为“%bs_ms%”
Echo %xsys% %xsys%%varr%,l30t%ee%w450h20,%bs_ms_ini%,ENVI BUTTON=%varr%,>>%temp_files%\选择标识.ini
If /I Not "%TMWimNum%"=="%bs_xh%" Goto xjszbs1
Del %temp_files%\info.txt&&Del %temp_files%\info1.txt
goto xjszbs2
:xjszbs2
set /a bb=%ee%+25
set /a cc=%bb%+20
set /a dd=%cc%+15
set /a ff=%dd%+27
Call :file_hd
If /I "%kjwim%"=="ckxxxx" (
Set jxts=此映像存在 %TMWimNum% 个镜像文件:
Echo GROU Group1,L10t%bb%w270h90,提示:>>%temp_files%\选择标识.ini
Echo LABE LABE2,L30T%cc%W240H65,%read_ts%。%readme1%>>%temp_files%\选择标识.ini
Echo ITEM BUTTON1,L300T%dd%w50h20,关闭,Call BUTTON,>>%temp_files%\选择标识.ini
) Else (
Echo GROU Group1,L10t%bb%w355h50,提示:>>%temp_files%\选择标识.ini
Echo LABE LABE2,L28t%cc%w330h15,请选择描述所对应的镜像,直接点“确认”按钮将选择镜像 “%TMWimNum%”>>%temp_files%\选择标识.ini
Echo ITEM BUTTON,L105T%ff%w50h20,确认,call BUTTON,>>%temp_files%\选择标识.ini
Echo ITEM BUTTON2,L200T%ff%w50h20,取消,Kill \%%xjszbs%%,>>%temp_files%\选择标识.ini
)
Echo _END >>%temp_files%\选择标识.ini
%pecmd_exe% load %temp_files%\选择标识.ini
If /I "%kjwim%"=="ckxxxx" Goto EX
Goto :EOF
虽然改成这样但还不好 经过我的研究发现set /a bsgd=%WimNum%*23+125 这一行当%WimNum%大于30时就不需要+125 了 就*23就够了 其实0~30这之间还可以分但由于不影响使用只是“确定”“取消”下面多出一大片空白 所以不分太细 所以想请教楼主如何把
set /a bsgd=%WimNum%*23+125 这一行分成当%WimNum%<30是*23+125 >30就是*23不加125 这样的两个语句 由于我不会批处理所以就请教你 正好你现在又在搞这个 还有个问题要请教 就是如何更改这个选择映像界面的宽度啊 因为有的映像描述很长以现在的宽度不能全显示出来 我想搞宽一些但不知道在那个地方改 修改了几个W后的数字但没变化 谢谢楼主了 如果你知道请回复我
[ 本帖最后由 592497623 于 2009-8-20 10:50 编辑 ] |
|