[Release] Command Prompt Here Shell Extension

Discuss & post Update Pack addons here.
Post Reply
User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

[Release] Command Prompt Here Shell Extension

Post by Kelsenellenelvian » Thu Oct 20, 2005 7:58 am

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!
Last edited by Kelsenellenelvian on Tue Apr 11, 2006 5:19 am, edited 5 times in total.

User avatar
Siginet
Site Admin
Posts: 2894
Joined: Fri May 27, 2005 1:07 pm
Location: Planet Earth
Contact:

Post by Siginet » Thu Oct 20, 2005 11:09 am

Very nice job Kelsenellenelvian!!! I like all of the new Addons you released today! This one is my favorite. ;)
Image
--Siginet--

Techware
Your Virtual Technician
Computer Management Software

User avatar
Fencer128
Posts: 168
Joined: Thu Jun 23, 2005 9:59 am
Location: Cumbernauld, Scotland

Post by Fencer128 » Thu Oct 20, 2005 11:11 am

Hi,

Do I cab these 3 files and then use that for the addon? (When I extract the zip I get three compressed files instead of the usual cab)

Thanks,

Andrew

Xable
Posts: 981
Joined: Tue May 03, 2005 6:38 pm
Contact:

Post by Xable » Thu Oct 20, 2005 2:08 pm

Nice work kel, you`ve been a busy bee :D
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\""
Hope this helps ;)

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Thu Oct 20, 2005 5:35 pm

Hmmmm will have to run some more tests,

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Thu Oct 20, 2005 7:49 pm

Fixed it....

Xable
Posts: 981
Joined: Tue May 03, 2005 6:38 pm
Contact:

Post by Xable » Thu Oct 20, 2005 8:41 pm

aha, strange, did you reshack the dll before?

EDIT,
Nevermind

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Thu Oct 20, 2005 9:31 pm

Yeah I found a dll that works right...

hosebeast
Posts: 2
Joined: Mon Oct 17, 2005 6:21 pm

Post by hosebeast » Sun Jan 01, 2006 4:13 pm

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.

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Mon Jan 02, 2006 9:23 am

OK, OK I am looking at doing it the inf way FINALLY! LOL

User avatar
DisabledTrucker
Posts: 822
Joined: Tue Feb 22, 2005 6:14 pm
Location: Country of Mental on the Planet Trucker in the MidnightHunter Galaxy.
Contact:

Post by DisabledTrucker » Mon Jan 02, 2006 1:24 pm

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!

User avatar
Fencer128
Posts: 168
Joined: Thu Jun 23, 2005 9:59 am
Location: Cumbernauld, Scotland

Post by Fencer128 » Thu Jan 19, 2006 5:09 am

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
RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Thu Jan 19, 2006 6:24 am

Sure...

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Thu Jan 19, 2006 1:02 pm

Updated.

ViVa

Post by ViVa » Thu Jan 19, 2006 1:09 pm

Thanks, but what Xable said, you don't need a .dll for this to work, just those reg tweaks...

(Sorry useless to post since you already made it, I know.)

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Thu Jan 19, 2006 3:08 pm

Tired will do in the next day or 2.

ViVa

Post by ViVa » Thu Jan 19, 2006 3:32 pm

Why? If this works, leave it. :)

User avatar
Fencer128
Posts: 168
Joined: Thu Jun 23, 2005 9:59 am
Location: Cumbernauld, Scotland

Post by Fencer128 » Mon Jan 23, 2006 10:13 am

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
RISult a utility to integrate RyanVM Updates and/or BTS DriverPacks into your RIS image.

User avatar
DisabledTrucker
Posts: 822
Joined: Tue Feb 22, 2005 6:14 pm
Location: Country of Mental on the Planet Trucker in the MidnightHunter Galaxy.
Contact:

Post by DisabledTrucker » Tue Jan 24, 2006 8:57 am

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!

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Mon Feb 20, 2006 8:14 am

Updated it is regfile flavor now and works on Windows 2000, XP and 2003 now.

User avatar
Aserone
Posts: 306
Joined: Sat Mar 11, 2006 8:46 pm
Location: Opioid dependent head.

Post by Aserone » Tue Apr 11, 2006 3:22 am

Don't know if anyone is using this standalone- But this Addon is broken.

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"
Undeclared string "%UDHERE%"
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)"
Tmp link until updated (will delete as soon as it's updated): [url=http://]Deleted[/url]
Last edited by Aserone on Tue Apr 11, 2006 5:42 am, edited 1 time in total.

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Tue Apr 11, 2006 5:18 am

K thanks for the help it is fixed now.

tooncis
Posts: 6
Joined: Sat Jan 20, 2007 3:00 pm

Post by tooncis » Mon Jul 21, 2008 4:43 pm

link is dead

User avatar
ENU_user
Posts: 1253
Joined: Wed Jan 25, 2006 1:42 pm

Post by ENU_user » Mon Jul 21, 2008 4:52 pm

link :arrow:

Post Reply