Windows XP -"Open terminal here" shell extension?

7

7

I remember in Ubuntu, I think it was Gnome, Nautilus had this option in the right-click context menu that allowed you to open a terminal whose working dir was the dir you were visiting in Nautilus, not the default '/home' dir. Is there any way to get that kind of functionality in Windows XP?

Enrico Tuvera Jr

Posted 2010-01-20T15:16:03.907

Reputation: 1 051

Answers

17

You don't need any tool to do this. Just a small Registry hack

Open a new file and paste this content, save as *.reg file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd]
@="Open Command Prompt Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd\command]
@="cmd.exe /k pushd %L"

And then double click into this file. Here we go!

Tuan Anh Hoang-Vu

Posted 2010-01-20T15:16:03.907

Reputation: 1 926

Yeah, but I always hate to tell people to edit their registry without knowing their knowledge level ahead of time. By any chance, is there a complimentary registry hack to remove these keys? – DaveParillo – 2010-01-21T16:19:34.403

1To delete a registry key with a .reg file, put a hyphen (-) in front of the RegistryPath in the .reg file – Tuan Anh Hoang-Vu – 2010-01-21T17:21:30.097

+1 I have a bunch of .reg saved away with shell hacks but it was quicker to find it here. Worked like a charm. It would be great if you added the remove reg file for newbs who don't know how to modify the reg. – Evan Plaice – 2011-01-08T09:19:00.503

It looks like it works no matter where you save the file - I just tested it. – Anderson Green – 2012-11-07T22:47:10.910

Yes that's right. Save it wherever you want, run it and delete it after use. – Tuan Anh Hoang-Vu – 2012-11-08T05:53:04.037

2Is there a way to make this work when I right-click on the background of a folder that I'm already in? (As opposed to right-clicking on a folder icon, which is what your current solution enables.) – Ajedi32 – 2013-01-10T16:42:23.940

7

Probably the simplest way is to use the Microsoft Power Toys - there is a CmdHere.exe specifically to do this.

DaveParillo

Posted 2010-01-20T15:16:03.907

Reputation: 13 402

6

I know this question is about Windows XP, but this is a sidenote:

These methods are unnecessary in Windows 7. In this version Shift Right-click allows access to a context menu with additional options, including open terminal here (more detail at download squad). Also holding down Control will open it with elevated privileges.

Casebash

Posted 2010-01-20T15:16:03.907

Reputation: 5 677

0

xpy can add this to the Explorer.

Supporting Windows 2000, Windows XP and Windows Server 2003, xpy allows tweaking the default settings to your needs. This includes the disabling of services, changing the behaviour and usability, deleting undesired files, or tweaking programs like Internet Explorer, Windows Media Player and Windows Messenger.

Bobby

Posted 2010-01-20T15:16:03.907

Reputation: 8 534