浏览 2818 次
锁定老帖子 主题:"DOS Here" 两种自制方式
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2010-02-05
最后修改:2010-02-05
第一种 写入注册表 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\cmd] @="DOS Here" [HKEY_CLASSES_ROOT\Directory\shell\cmd\command] @="cmd.exe /k \"cd %L\"" 第二种 inf文件安装 ; ; "Command Prompt Here" PowerToy ; ; Copyright 1996 Microsoft Corporation ; [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="DOS Here PowerToy" DosHereAccel="Command &Prompt Here" UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\DosHere"
声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |