|
emca 发表于 2013-5-27 18:19
有个新想法,解决体积与映像大小的矛盾问题:
先将最必需的系统文件做成内核WIM压缩包,将大量其他用于应用 ...
Why not use "ImDisk"?
1. If you use the "Ramstatus.exe", you can automate the size of the "ImDisk" from of RAM.
2. You can install the programs "wim" on "ImDisk" (read only)!
Ramdisk.cmd:
@echo off
set /a MaxSize=3024
for /f "usebackq skip=1 tokens=3 delims=: " %%i in (`RamStatus.exe`) do set size=%%i
set /a size=%size%/1024
set /a "size=(%size%-64)*60/100"
if %size% lss 64 set size=64
set form="/fs:NTFS /q /y /v:RAMDisk /c"
if %size% LSS 512 set form="/fs:fat32 /q /y /v:RAMDisk"
if %size% GTR %MaxSize% set size=%MaxSize%
imdisk.exe -a -t vm -m B: -s %size%M -p %form%
md B:\Temp
set Temp=B:\Temp
set Tmp=B:\Temp
set RamDrv=B:\
exit |
|