Click here to Skip to main content
12,356,154 members (66,178 online)
Click here to Skip to main content
Add your own
alternative version

Stats

124K views
2K downloads
59 bookmarked
Posted

OpenFolder - An explorer shell extension

, 18 Jun 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
A free tool which provides an explorer context menu to open a Command Prompt, now supports elevated Command Prompts on Vista.

Screenshot - openfolder.gif

Introduction

I know this is a tiny little article and will probably get flamed, but it only a small utility and I have had several requests for its source code.

Some of you may find it useful anyway; I use it all the time.

OpenFolder is a shell extension which I wrote quite a while ago. It provides a new menu item on the Context Menu under Explorer.

The new menu item "Open Command Prompt Here" ... will open a Command Prompt box at the location of the file/folder that was selected when the menu was clicked.

OpenFolder runs as an explorer context menu shell extension and is written in C++ using ATL.

Installation

Simply download the setup kit, run it and click on 'Next', 'Install' and 'Finish'.

Once installed, right-click on a file or folder in explorer (or most other applications), then click on the 'Open Command Prompt Here...' menu item.

A new Command Prompt will be opened in the selected folder.

Windows Vista

OpenFolder now supports Elevated Command Prompts if it detects that it is running on Vista, see the screen shot above for the new "Open an Elevated Command Prompt Here..." menu item.

64-bit OpenFolder

I received an email from a user of OpenFolder saying that it did not work on XP x64. This is normal as 32-bit shell extensions cannot be loaded into a 64-bit Windows Explorer. I wanted to create a 64-bit version for them so I recompiled OpenFolder as a 64-bit appilcation and created a new setup kit to support the 64-bit install.

The 64-bit installation has been tested on 64-bit versions of XP and Vista.

License

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  • The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
    If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required.
  • Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  • This notice may not be removed or altered from any source distribution.

History

  • 3.20 (Jun 17, 2008) - Updated the project to Visual Studio 2008 and created the 64-bit version and a new x64 setup kit.
  • 3.12 (Jun 21, 2007) - Fix on non-vista PC's where by version 3.11 broke the context menu.
  • 3.11 (June 10, 2007) - Fixed some bugs in the command processing code which was using the wrong command id's to determine what to process.
  • 3.10 (May 31, 2007) - Updated to support Windows Vista, including a new menu item for opening Elevated Command Prompts.
  • 3.01 (Mar 8, 2006) - Now compiled under Visual Studio .NET 2005, also the setup kit now created with NSIS.
  • 3.00 (Oct 22, 2005) - Rewrite to compile under Visual Studio.NET 2003. A few minor bug fixes too.
  • 2.00 (Apr 29, 2003) - Complete rewrite using ATL.
  • 1.00 (Apr 11, 1998) - Initial Public Release.

Bugs

The shield icon does not display correctly in the context menu, the fix is to make the menu item owner draw. I intend to fix this when I have time.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jonathan [Darka]
Architect Elekta Limited
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Comments and Discussions

 
QuestionQueryContextMenu() function return MAKE_HRESULT() Pin
dbirdz22-Jun-12 3:05
memberdbirdz22-Jun-12 3:05 
AnswerRe: QueryContextMenu() function return MAKE_HRESULT() Pin
Jonathan [Darka]26-Jun-12 2:44
memberJonathan [Darka]26-Jun-12 2:44 
QuestionOpenFolder - An explorer shell extension Pin
pluimpje131-Jan-12 5:49
memberpluimpje131-Jan-12 5:49 
AnswerRe: OpenFolder - An explorer shell extension Pin
Jonathan [Darka]2-Feb-12 0:53
memberJonathan [Darka]2-Feb-12 0:53 
GeneralRe: OpenFolder - An explorer shell extension Pin
pluimpje13-Feb-12 23:39
memberpluimpje13-Feb-12 23:39 
Bugopenfolder-an explorer shell extension Pin
pluimpje131-Jan-12 5:48
memberpluimpje131-Jan-12 5:48 
GeneralRe: openfolder-an explorer shell extension Pin
Jonathan [Darka]1-Feb-12 23:50
memberJonathan [Darka]1-Feb-12 23:50 
GeneralRe: openfolder-an explorer shell extension Pin
pluimpje13-Feb-12 1:00
memberpluimpje13-Feb-12 1:00 
GeneralRe: openfolder-an explorer shell extension Pin
pluimpje13-Feb-12 5:21
memberpluimpje13-Feb-12 5:21 
Bugopenfolder-an explorer shell extension Pin
pluimpje131-Jan-12 5:47
memberpluimpje131-Jan-12 5:47 
GeneralMy vote of 2 Pin
Dave Kreskowiak14-Jun-11 3:44
mvpDave Kreskowiak14-Jun-11 3:44 
GeneralRe: My vote of 2 Pin
Jonathan [Darka]1-Feb-12 23:52
memberJonathan [Darka]1-Feb-12 23:52 
GeneralMy vote of 5 Pin
Glimmie66615-Mar-11 3:47
memberGlimmie66615-Mar-11 3:47 
GeneralWindows 7 and VisualStudio 2010 Pin
Glimmie66615-Mar-11 3:45
memberGlimmie66615-Mar-11 3:45 
GeneralMy vote of 5 Pin
joshcomley10-Sep-10 7:54
memberjoshcomley10-Sep-10 7:54 
GeneralAnother suggestion Pin
Hans Dietrich6-May-10 7:25
mentorHans Dietrich6-May-10 7:25 
GeneralRe: Another suggestion Pin
Jonathan [Darka]6-May-10 22:38
memberJonathan [Darka]6-May-10 22:38 
QuestionUnicode builds? Pin
Hans Dietrich3-May-10 7:23
mentorHans Dietrich3-May-10 7:23 
AnswerRe: Unicode builds? Pin
Jonathan [Darka]4-May-10 7:55
memberJonathan [Darka]4-May-10 7:55 
GeneralRe: Unicode builds? Pin
Hans Dietrich4-May-10 8:16
mentorHans Dietrich4-May-10 8:16 
GeneralRe: Unicode builds? Pin
Jonathan [Darka]4-May-10 22:59
memberJonathan [Darka]4-May-10 22:59 
GeneralRe: Unicode builds? Pin
Hans Dietrich4-May-10 23:46
mentorHans Dietrich4-May-10 23:46 
GeneralRe: Unicode builds? Pin
Jonathan [Darka]4-May-10 23:52
memberJonathan [Darka]4-May-10 23:52 
GeneralNice little util Pin
Abu Mami18-Jun-08 21:03
memberAbu Mami18-Jun-08 21:03 
GeneralRe: Nice little util Pin
Jonathan [Darka]18-Jun-08 22:09
memberJonathan [Darka]18-Jun-08 22:09 
GeneralRe: Nice little util [modified] Pin
xalspaero25-Oct-09 22:23
memberxalspaero25-Oct-09 22:23 
GeneralRe: Nice little util Pin
Jonathan [Darka]27-Oct-09 2:17
memberJonathan [Darka]27-Oct-09 2:17 
General%SYSTEMROOT%\System32\ShellExt Pin
Jeffrey Walton18-Jun-08 19:18
mvpJeffrey Walton18-Jun-08 19:18 
GeneralRe: %SYSTEMROOT%\System32\ShellExt Pin
Jonathan [Darka]18-Jun-08 22:35
memberJonathan [Darka]18-Jun-08 22:35 
GeneralRe: %SYSTEMROOT%\System32\ShellExt Pin
Jeffrey Walton19-Jun-08 4:46
mvpJeffrey Walton19-Jun-08 4:46 
GeneralVersion 3.2 (64-bit Version) Pin
Jonathan [Darka]17-Jun-08 2:09
memberJonathan [Darka]17-Jun-08 2:09 
GeneralBuilding in release Pin
seafishkakakaka1-Apr-08 7:48
memberseafishkakakaka1-Apr-08 7:48 
GeneralRe: Building in release Pin
Jonathan [Darka]2-Apr-08 3:14
memberJonathan [Darka]2-Apr-08 3:14 
GeneralRe: Building in release Pin
seafishkakakaka2-Apr-08 4:56
memberseafishkakakaka2-Apr-08 4:56 
GeneralRe: Building in release Pin
Jonathan [Darka]2-Apr-08 7:05
memberJonathan [Darka]2-Apr-08 7:05 
GeneralRe: Building in release Pin
KarstenK18-Jun-08 21:29
memberKarstenK18-Jun-08 21:29 
GeneralRe: Building in release Pin
Jonathan [Darka]18-Jun-08 22:13
memberJonathan [Darka]18-Jun-08 22:13 
GeneralVersion 3.12 Pin
Jonathan [Darka]21-Jun-07 1:03
memberJonathan [Darka]21-Jun-07 1:03 
GeneralRe: Version 3.12 Pin
Bilou_Gateux16-Aug-07 5:57
memberBilou_Gateux16-Aug-07 5:57 
GeneralRe: Version 3.12 Pin
Jonathan [Darka]16-Aug-07 7:32
memberJonathan [Darka]16-Aug-07 7:32 
GeneralThis doesn't seem to work for me. Pin
JonBooth20-Jun-07 17:31
memberJonBooth20-Jun-07 17:31 
GeneralRe: This doesn't seem to work for me. Pin
hadjiyski20-Jun-07 23:03
memberhadjiyski20-Jun-07 23:03 
GeneralRe: This doesn't seem to work for me. Pin
Jonathan [Darka]20-Jun-07 23:28
memberJonathan [Darka]20-Jun-07 23:28 
GeneralRe: This doesn't seem to work for me. Pin
hadjiyski20-Jun-07 23:40
memberhadjiyski20-Jun-07 23:40 
GeneralRe: This doesn't seem to work for me. Pin
Jonathan [Darka]20-Jun-07 23:43
memberJonathan [Darka]20-Jun-07 23:43 
GeneralRe: This doesn't seem to work for me. Pin
hadjiyski20-Jun-07 23:48
memberhadjiyski20-Jun-07 23:48 
GeneralRe: This doesn't seem to work for me. Pin
Jonathan [Darka]21-Jun-07 0:23
memberJonathan [Darka]21-Jun-07 0:23 
GeneralRe: This doesn't seem to work for me. Pin
Jonathan [Darka]21-Jun-07 0:59
memberJonathan [Darka]21-Jun-07 0:59 
GeneralRe: This doesn't seem to work for me. Pin
hadjiyski21-Jun-07 1:17
memberhadjiyski21-Jun-07 1:17 
GeneralRe: This doesn't seem to work for me. Pin
hadjiyski21-Jun-07 1:28
memberhadjiyski21-Jun-07 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 18 Jun 2008
Article Copyright 2006 by Jonathan [Darka]
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid