[Release] Command Prompt Here Shell Extension
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
[Release] Command Prompt Here Shell Extension
Download here --> http://www.wpiw.net/downloads/Kels_CMDH ... n_v1.4.cab
Size - 852 bytes MD5Hash = 0E04FEFC19AD8D32F749CB3515EED939
Works on WIndows 2000, XP and 2003 now!
Size - 852 bytes MD5Hash = 0E04FEFC19AD8D32F749CB3515EED939
Works on WIndows 2000, XP and 2003 now!
Last edited by Kelsenellenelvian on Tue Apr 11, 2006 5:19 am, edited 5 times in total.
Nice work kel, you`ve been a busy bee 
Sorry to say it though, this won`t work. The dll only contains Version Info, it`s installed with regentries.
I usualy install CMD Here in my UA setup with reg entries... no dll
Hope this helps 

Sorry to say it though, this won`t work. The dll only contains Version Info, it`s installed with regentries.
I usualy install CMD Here in my UA setup with reg entries... no dll
Code: Select all
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="CMD Here"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /k \"cd %L\""
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="CMD Here"
[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="cmd.exe /k \"cd %L\""

- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
The current version (1.1) of this pack is using the Synesis DLL from http://www.synesis.com.au/shellext/index.html#mecmdbox but the entries_cmdhere.ini inside the cab says:
website=http://www.microsoft.com/windowsxp/down ... rtoys.mspx
And there is one key difference between the Synesis cmdhere.dll and the Microsoft cmdhere.dll: Synesis only extends HKEY_CLASSES_ROOT\Directory\Shell. It does not extend HKEY_CLASSES_ROOT\Drive\Shell. This means the "Command Prompt Here" option does not appear when you right-click a drive at the root instead of a directory.
This is a fairly common oversight by many of the "Command Prompt Here" tweaks out there. Maybe I'm the only person who ever wants to get a command prompt at the root of a drive. Microsoft does document both keys in .http://support.microsoft.com/?id=320148#3 but you must read very carefully or you might miss the paragraph at the end of the section (after step 10).
In my opinion, the best way to implement this feature is without installing any DLL. You can do it all with the INF file which Microsoft has been supplying in the Windows Resource Kit since NT 4.0. Here is the current download: http://go.microsoft.com/fwlink/?LinkId=4544. After installation, look for cmdhere.inf in Program Files\Windows Resource Kits\Tools. (If anyone is curious enough to find it in older ResKits, it was originally named doshere.inf and contained dual install sections to support both 9X and NT. It was later renamed to cmdhere.inf and the 9X sections referencing command.com were removed.)
In addition to having the feature work at the root of a drive, the INF is better because it can be uninstalled cleanly without reboot, because there is no DLL which Explorer keeps loaded. This makes it easier for us geeks to install it temporarily while fixing grandma's computer, then quickly remove it so grandma won't panic after accidentally clicking it.
website=http://www.microsoft.com/windowsxp/down ... rtoys.mspx
And there is one key difference between the Synesis cmdhere.dll and the Microsoft cmdhere.dll: Synesis only extends HKEY_CLASSES_ROOT\Directory\Shell. It does not extend HKEY_CLASSES_ROOT\Drive\Shell. This means the "Command Prompt Here" option does not appear when you right-click a drive at the root instead of a directory.
This is a fairly common oversight by many of the "Command Prompt Here" tweaks out there. Maybe I'm the only person who ever wants to get a command prompt at the root of a drive. Microsoft does document both keys in .http://support.microsoft.com/?id=320148#3 but you must read very carefully or you might miss the paragraph at the end of the section (after step 10).
In my opinion, the best way to implement this feature is without installing any DLL. You can do it all with the INF file which Microsoft has been supplying in the Windows Resource Kit since NT 4.0. Here is the current download: http://go.microsoft.com/fwlink/?LinkId=4544. After installation, look for cmdhere.inf in Program Files\Windows Resource Kits\Tools. (If anyone is curious enough to find it in older ResKits, it was originally named doshere.inf and contained dual install sections to support both 9X and NT. It was later renamed to cmdhere.inf and the 9X sections referencing command.com were removed.)
In addition to having the feature work at the root of a drive, the INF is better because it can be uninstalled cleanly without reboot, because there is no DLL which Explorer keeps loaded. This makes it easier for us geeks to install it temporarily while fixing grandma's computer, then quickly remove it so grandma won't panic after accidentally clicking it.
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
- DisabledTrucker
- Posts: 822
- Joined: Tue Feb 22, 2005 6:14 pm
- Location: Country of Mental on the Planet Trucker in the MidnightHunter Galaxy.
- Contact:
Kewl, I thought that there was something wrong with the version I was using, because I couldn't any longer use it with the root of the drive, hopefully that can be fixed in the next version... 

Matthew 22:36-40
I have some gmail invites left, if you'd like one IM me and let me know.
[url=mms://wmc1.liquidviewer.net/WNOR]WNOR FM-99[/url] The best station in the world!
I have some gmail invites left, if you'd like one IM me and let me know.
[url=mms://wmc1.liquidviewer.net/WNOR]WNOR FM-99[/url] The best station in the world!
Hi Kel,
Is there any chance that you could update this pack to be 8.3 format compliant (cmdhere_Addons.inf specifically) when you have some time?
I've got everything else I'm using done in this way and yours is the last pack remaining with this issue. I didn't want to go and create something identical that only had a couple of name changes and then post it. It would seem to take credit for work that wasn't my own.
Cheers,
Andy
Is there any chance that you could update this pack to be 8.3 format compliant (cmdhere_Addons.inf specifically) when you have some time?
I've got everything else I'm using done in this way and yours is the last pack remaining with this issue. I didn't want to go and create something identical that only had a couple of name changes and then post it. It would seem to take credit for work that wasn't my own.
Cheers,
Andy
RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
Thanks Kel.
I know I could directly add the functionality through registry entries but I like the modularity given by add-on packs.
Cheers,
Andy
I know I could directly add the functionality through registry entries but I like the modularity given by add-on packs.
Cheers,
Andy
RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.
- DisabledTrucker
- Posts: 822
- Joined: Tue Feb 22, 2005 6:14 pm
- Location: Country of Mental on the Planet Trucker in the MidnightHunter Galaxy.
- Contact:
Here is the code from the RKTOOLS for Windows Server 2k3 that creates what they were mentioning above, you can find the CMDHERE.INF file in the RKTOOLS pack.
Code: Select all
;
; "CMD Prompt Here" PowerToy
;
; Copyright 1996 Microsoft Corporation
;
[version]
signature="$CHICAGO$"
[CmdHereInstall]
CopyFiles = CmdHere.Files.Inf
AddReg = CmdHere.Reg
[DefaultInstall]
CopyFiles = CmdHere.Files.Inf
AddReg = CmdHere.Reg
[DefaultUnInstall]
DelFiles = CmdHere.Files.Inf
DelReg = CmdHere.Reg
[SourceDisksNames]
55="CMD Prompt Here","",1
[SourceDisksFiles]
CmdHere.INF=55
[DestinationDirs]
CmdHere.Files.Inf = 17
[CmdHere.Files.Inf]
CmdHere.INF
[CmdHere.Reg]
HKLM,%UDHERE%,DisplayName,,"%CmdHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CmdHere.inf"
HKCR,Directory\Shell\CmdHere,,,"%CmdHereAccel%"
HKCR,Directory\Shell\CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
HKCR,Drive\Shell\CmdHere,,,"%CmdHereAccel%"
HKCR,Drive\Shell\CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
[Strings]
CmdHereName="CMD Prompt Here PowerToy"
CmdHereAccel="CMD &Prompt Here"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CmdHere"
Matthew 22:36-40
I have some gmail invites left, if you'd like one IM me and let me know.
[url=mms://wmc1.liquidviewer.net/WNOR]WNOR FM-99[/url] The best station in the world!
I have some gmail invites left, if you'd like one IM me and let me know.
[url=mms://wmc1.liquidviewer.net/WNOR]WNOR FM-99[/url] The best station in the world!
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact:
Don't know if anyone is using this standalone- But this Addon is broken.
Undeclared string "%UDHERE%"
It should be something like this:
Tmp link until updated (will delete as soon as it's updated): [url=http://]Deleted[/url]
Code: Select all
[CmdHere.Reg]
HKLM,%UDHERE%,DisplayName,,"%CmdHereName%"
HKCR,Directory\Shell\CmdHere,,,"%CmdHereAccel%"
HKCR,Directory\Shell\CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
HKCR,Drive\Shell\CmdHere,,,"%CmdHereAccel%"
HKCR,Drive\Shell\CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
[Strings]
CmdHereName="CMD Prompt Here PowerToy"
CmdHereAccel="CMD &Prompt Here"
It should be something like this:
Code: Select all
[CmdHere.AddReg]
HKCR,Directory\Shell\CmdHere,,,"%CmdHereAccel%"
HKCR,Directory\Shell\CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
HKCR,Drive\Shell\CmdHere,,,"%CmdHereAccel%"
HKCR,Drive\Shell\CmdHere\command,,,"%11%\cmd.exe /k cd ""%1"""
[Strings]
CmdHereAccel="CMD Prompt (here)"
Last edited by Aserone on Tue Apr 11, 2006 5:42 am, edited 1 time in total.
- Kelsenellenelvian
- Moderator
- Posts: 4383
- Joined: Tue Nov 30, 2004 8:32 pm
- Location: Pocatello, ID
- Contact: