二、右键添加IMDISK ImDisk是一款非常小巧方便的虚拟硬盘工具,它可以创建、加载普通镜像文件,也可以将内存中的一部分空间虚拟成硬盘,存放数据以获得高速读取速度。有图形界面及命令行支持。 添加方法如下: 1、添加文件 把IMDISK.SYS放system32下面DRIVERS里面,在system32下面加入imdisk.exe、imdsksvc.exe、IMDISK.CPL三个文件。 2、修改注册表 修改system32文件夹下config文件夹内的system文件。导入如下内容: 注册表一: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\ImDisk] "Type"=dword:00000001 "Start"=dword:00000002 "ErrorControl"=dword:00000000 "ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,52,\ 00,49,00,56,00,45,00,52,00,53,00,5c,00,69,00,6d,00,64,00,69,00,73,00,6b,00,\ 2e,00,73,00,79,00,73,00,00,00 "DisplayName"="ImDisk Virtual Disk Driver" "Description"="Disk emulation driver" 注册表二: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\pe\ControlSet001\Services\ImDskSvc] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000000 "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,\ 00,6d,00,64,00,73,00,6b,00,73,00,76,00,63,00,2e,00,65,00,78,00,65,00,00,00 "DisplayName"="ImDisk Virtual Disk Driver Helper" "ObjectName"="LocalSystem" "Description"="Helper service for ImDisk Virtual Disk Driver." PS:修改WINPE注册表的方法,参考我写的《设置WinPE的X盘大小》。 3、添加批处理命令: PUSHD %~dp0 SET TP=%CD% reg add "HKCR\Drive\shell\ImDiskSaveImage" /f /ve /t REG_SZ /d "保存ImDisk虚拟磁盘" reg add "HKCR\Drive\shell\ImDiskSaveImage\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_SaveImageFile %%L" reg add "HKCR\Drive\shell\ImDiskUnmount" /f /ve /t REG_SZ /d "卸载ImDisk虚拟磁盘" reg add "HKCR\Drive\shell\ImDiskUnmount\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_RemoveDevice %%L" reg add "HKLM\SOFTWARE\Classes\Ultraiso\shell\ImDiskMountFile" /f /ve /t REG_SZ /d "加载ImDisk虚拟磁盘" reg add "HKLM\SOFTWARE\Classes\Ultraiso\shell\ImDiskMountFile\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_MountFile %%L" reg add "HKLM\SOFTWARE\Classes\Winimage\shell\ImDiskMountFile" /f /ve /t REG_SZ /d "加载ImDisk虚拟磁盘" reg add "HKLM\SOFTWARE\Classes\Winimage\shell\ImDiskMountFile\command" /f /ve /t REG_SZ /d "rundll32.exe imdisk.cpl,RunDLL_MountFile %%L" 添加好imdisk右键后,效果如下图:
|