|
本帖最后由 chiannet 于 2015-8-27 11:27 编辑
比如U:\mywimfiles\MY_EXT_SOFT.WIM
MYCOMMAND.TXT
_SUB After
find $%WIN%=WIN2003PE,
{
FORX /S \mywimfiles\*.WIM,K,0,
{
NAME I=%K%
IFEX Y:\%I%,!
{
TEXT 正在加载%I%.WIM .......#0x000000 L28 T28 $20
MOUN %K%,Y:\%I%\
IFEX Y:\%I%\MAIN.INI,LOAD Y:\%I%\MAIN.INI!LOAD Y:\%I%\%I%.INI
}
}
EXIT _SUB
}
ENVI P=0
envi m=
envi list=
// *.WIM名称路径不要带空格,否则后面不好处理
FORX /S \mywimfiles\*.WIM,K,0,
{
NAME N=%K%
LPOS Ix=_%N%_,1,%M%
FIND #%Ix%=0,
{
envi m=%m%_%N%_
SIZE I=%K%
CALC P=%P%+%I%
envi list=%list% %K%
}
}
CALC #P=2*%P%/1000000
FORX * A B F G H I J K L M N O P Q R S T U V,DV,IFEX %DV%:\,!
{
RAMD ImDisk,L%P%,NTFS,%DV%:,ImDisk1,,1
EXIT FORX
}
FORX * %list%,K,
{
NAME I=%K%
PATH %DV%:\%I%
MOUN %K%,%DV%:\%I%\
IFEX %DV%:\%I%\MAIN.INI,LOAD %DV%:\%I%\MAIN.INI!LOAD %DV%:\%I%\%I%.INI
}
_END
|
|