内容发布更新时间 : 2024/12/23 13:25:08星期一 下面是文章的全部内容请认真阅读。
这篇文章主要介绍了Win7下VHD文件右键增强的实现方法,需要的朋友可以参考下 1、保存以下代码到:c:\\windows\\system32\\vdm.vbs 代码如下: Dim Args
Set Args = WScript.Arguments TranArgs = \
For i = 0 To Args.Count - 1
TranArgs = TranArgs & \ Next
If Args(0) <> \
If Args(0) <> \
CreateObject(\
\& WScript.ScriptFullName & \& \-hWind\& TranArgs, \
WScript.Quit(5) Else
CreateObject(\
\& Wscript.ScriptFullName & \& Replace(TranArgs, \ WScript.Quit(1) End If Else
'Add Your Codes
Dim objShell, objExec
Set objShell = WScript.CreateObject(\
Set objExec = objShell.Exec(\
objExec.StdIn.WriteLine \\
Select Case Args(1) Case \
objExec.StdIn.WriteLine \ objExec.StdIn.WriteLine \ WScript.Quit(0) Case \
objExec.StdIn.WriteLine \ objExec.StdIn.WriteLine \ WScript.Quit(0) Case Else 'other
WScript.Quit(0) End Select
WScript.Quit(0)
End If
2、导入注册表文件: 代码如下:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Virtual.Machine.HD\\Shell] @=\
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Virtual.Machine.HD\\Shell\\Dismount] @=\分离 VHD(&D)\
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Virtual.Machine.HD\\Shell\\Dismount\\command]
@=\ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Virtual.Machine.HD\\Shell\\Mount] @=\挂载 VHD(&M)\
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Virtual.Machine.HD\\Shell\\Mount\\command] @=\ [HKEY_CLASSES_ROOT\\.vhd]
@=\