本帖最后由 flashercs 于 2024-9-13 17:30 编辑
- Windows Registry Editor Version 5.00
-
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\VhdProject]
- "Icon"="%SystemRoot%\\system32\\shell32.dll,7"
- "MUIVerb"="VHD创建工具"
- "ExtendedSubCommandsKey"="Directory\\ContextMenus\\VhdProject"
-
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VhdProject]
- "Icon"="%SystemRoot%\\system32\\shell32.dll,7"
- "MUIVerb"="VHD创建工具"
- "ExtendedSubCommandsKey"="Directory\\ContextMenus\\VhdProject"
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\ContextMenus\VhdProject]
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\ContextMenus\VhdProject\shell]
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\ContextMenus\VhdProject\shell\runas]
- "Icon"="%SystemRoot%\\system32\\shell32.dll,7"
- "MUIVerb"="创建动态VHD"
- "HasLUAShield"=""
-
- [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\ContextMenus\VhdProject\shell\runas\command]
- @="C:\\Windows\\system32\\cmd.exe /v:on /c set /p \"vhdName=Please input the vhd name:\" & set /p \"vhdSize=Please input the vhd size(MB):\" & set \"vhdPath=%V\\!vhdName!\" & set \"vhdPath=!vhdPath:\\\\=\\!\" & echo,!vhdPath! & C:\\Windows\\system32\\cmd.exe /v:on /c \"echo create vdisk file=\"!vhdPath!\" maximum=!vhdSize! type=EXPANDABLE & echo Select vdisk file=\"!vhdPath!\" & echo attach vdisk & echo create partition primary & echo select partition 1 & echo ASSIGN & echo format quick fs=ntfs label=Windows_vhd\"|C:\\Windows\\system32\\diskpart.exe & pause"
复制代码
|