DBATips 2012-10-18
WindowsRegistryEditorVersion5.00
[HKEY_CLASSES_ROOT\Folder\shell\Open_DOS_Box]
@="[进入DOS]"
[HKEY_CLASSES_ROOT\Folder\shell\Open_DOS_Box\command]
@="cmd.exe/s/kpushd\"%V\""
转自:http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=861524
如果使用了doshere.inf进行安装,可以使用下面方法卸载。
进入dos界面,运行下面的命令:
RunDll32 advpack.dll,LaunchINFSection %windir%\inf\doshere.inf,BLC.Remove
下面是一份doshere的代码:
[version] signature="$CHICAGO$" [DosHereInstall] CopyFiles = DosHere.Files.Inf AddReg = DosHere.Reg [DefaultInstall] CopyFiles = DosHere.Files.Inf AddReg = DosHere.Reg [DefaultInstall.ntx86] CopyFiles = DosHere.Files.Inf AddReg = DosHere.Reg.NT [DefaultUnInstall] DelFiles = DosHere.Files.Inf DelReg = DosHere.Reg [DefaultUnInstall.ntx86] DelFiles = DosHere.Files.Inf DelReg = DosHere.Reg.NT [SourceDisksNames] 55="DOS Prompt Here","",1 [SourceDisksFiles] DOSHERE.INF=55 [DestinationDirs] DosHere.Files.Inf = 17 [DosHere.Files.Inf] DOSHERE.INF [DosHere.Reg] HKLM,%UDHERE% HKLM,%UDHERE%,DisplayName,,"%DosHereName%" HKLM,%UDHERE%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\DosHere.inf" HKCR,Directory\Shell\DosHere,,,"%DosHereAccel%" HKCR,Directory\Shell\DosHere\command,,,"%10%\command.com /k cd ""%1""" HKCR,Drive\Shell\DosHere,,,"%DosHereAccel%" HKCR,Drive\Shell\DosHere\command,,,"%10%\command.com /k cd ""%1""" [DosHere.Reg.NT] HKLM,%UDHERE% HKLM,%UDHERE%,DisplayName,,"%DosHereName%" HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\DosHere.inf" HKCR,Directory\Shell\DosHere,,,"%DosHereAccel%" HKCR,Directory\Shell\DosHere\command,,,"%11%\cmd.exe /k cd ""%1""" HKCR,Drive\Shell\DosHere,,,"%DosHereAccel%" HKCR,Drive\Shell\DosHere\command,,,"%11%\cmd.exe /k cd ""%1""" [Strings] DosHereName="Command Prompt Here PowerToy" DosHereAccel="&DOS Here" UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\DosHere"