|  | 
8#
 
 
 楼主|
发表于 2012-4-15 23:11:14
|
只看该作者 
| 能讲讲call set/a 是怎么回事吗? 我直接在原来的代码前加上
 setlocal ENABLEDELAYEDEXPANSION
 还是不行.
 fbinst和imdisk后面跟的都是开关和参数.我这样写法使用有没有问题?
 
 这是我从新修改的.
 
 复制代码
@echo off
fbinst (ud) filesize "UDTOOLS/office03.*"
if not %errorlevel%==-1 (set size=%errorlevel%) else (goto end) 
if exist "y:\uramdisk.txt" goto ext
set /a size=%size%*115/100
imdisk -a -s %size%K -m W: -p "/FS:NTFS /V:UdTemp /Y /Q"
goto :comm
 
:ext
set /a size=%size%*105/100
imdisk -e -s %size%K -m W:
goto comm
 
:comm
fbinst (ud) output "UDTOOLS/office03.*" W:/
if %errorlevel%==0 (echo ramdisk=%size%K>y:\uramdisk.txt) else (goto end) 
pecmd moun w:\udtools\office03.wim,y:\office03\,1,%temp%
cd /d y:\office03
call insoffice.cmd
pecmd link %userprofile%\桌面\word2003,y:\office03\winword.exe
 
:end
exit
 | 
 |