|
原帖由 2012Taobao 于 2012-10-14 17:02 发表
对于你的统一模块,我的理解是:你的原创easy+grub多引导统一模式+打狗的PE内核自动加载外置ISO模块,能否透露下打狗的PE内核模块具体是什么东东?
详细见:http://bbs.wuyou.net/forum.php?mod=viewthread&tid=94840&highlight=%CB%ABISO
改天得闲弄一个新的普通版统一模块,给大家用。
PECMD.ini中增加脚本为红字部分:
//如果不是加载最小模式,就加载外部配置。
FIND $%MinMode%=Yes,!TEAM TEXT|LOAD \外置程序\WinPE.INI
//新增加几行用于调入PEtools.iso
LINK %StartMenu%\加载外部配置,%SS%\winpefiles.cmd ,,%SS%\SHELL32.DLL#26
//NUMK 0
FIND $%MinMode%=Yes,TEXT!exec =%SS%\winpefiles.cmd
内核中增加 winpefiles.cmd VDM1.EXE VDD-X86.SYS三个文件,其中winpefiles.cmd 脚本为:
@echo off
set ff=winpefiles
for %%x in (A B C D E F G H I J K L M N O P Q R S T U V W) DO if exist %%x:\外置程序\winpe.ini goto end
for %%x in (A B C D E F G H I J K L M N O P Q R S T U V) DO (
if exist %%x:\iso\petools.iso set fn=%%x:\iso\petools.iso
if exist %%x:\iso\petools.iso GOTO iso
if exist %%x:\%ff%.iso set fn=%%x:\%ff%.iso
if exist %%x:\%ff%.iso GOTO iso
if exist %%x:\%ff%.img set fn=%%x:\%ff%.img
if exist %%x:\%ff%.img GOTO img
)
goto end
:iso
regsvr32 /s pathcopyex.dll
REG ADD "HKCU\Software\Towodo Software\Virtual Drive Manager\Settings" /f /v MountPrevious /t REG_DWORD /d 1 >nul
REG ADD "HKCU\Software\Towodo Software\Virtual Drive Manager\Settings" /f /v XbtnQuit /t REG_DWORD /d 0 >nul
REG ADD "HKCU\Software\Towodo Software\Virtual Drive Manager\Settings" /f /v LastMounts /t REG_MULTI_SZ /s ! /d W:!自动侦测!%fn%!1 >nul
REG ADD "HKCU\Software\Towodo Software\虚拟驱动器\Settings" /f /v MountPrevious /t REG_DWORD /d 1 >nul
REG ADD "HKCU\Software\Towodo Software\虚拟驱动器\Settings" /f /v XbtnQuit /t REG_DWORD /d 0 >nul
REG ADD "HKCU\Software\Towodo Software\虚拟驱动器\Settings" /f /v LastMounts /t REG_MULTI_SZ /s ! /d W:!自动侦测!%fn%!1 >nul
goto vdm
:img
REG ADD "HKCU\Software\Towodo Software\Virtual Drive Manager\Settings" /f /v MountPrevious /t REG_DWORD /d 1 >nul
REG ADD "HKCU\Software\Towodo Software\Virtual Drive Manager\Settings" /f /v XbtnQuit /t REG_DWORD /d 0 >nul
REG ADD "HKCU\Software\Towodo Software\Virtual Drive Manager\Settings" /f /v LastMounts /t REG_MULTI_SZ /s ! /d W:!自动侦测!%fn%!%imgro% >nul
REG ADD "HKCU\Software\Towodo Software\虚拟驱动器\Settings" /f /v MountPrevious /t REG_DWORD /d 1 >nul
REG ADD "HKCU\Software\Towodo Software\虚拟驱动器\Settings" /f /v XbtnQuit /t REG_DWORD /d 0 >nul
REG ADD "HKCU\Software\Towodo Software\虚拟驱动器\Settings" /f /v LastMounts /t REG_MULTI_SZ /s ! /d W:!自动侦测!%fn%!%imgro% >nul
:vdm
start vdm1.exe /i
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo 稍等片刻......
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Wait
pecmd wait 1000
IF NOT EXIST W: GOTO Wait
if exist W:\外置程序\winpe.ini pecmd load W:\外置程序\winpe.ini
:end
如果在新版cmd中出出屏幕请变成,把cmd变成exe就可。
[ 本帖最后由 zds1210 于 2012-10-14 19:11 编辑 ] |
|