Click here to Skip to main content
15,885,435 members
Articles / Programming Languages / C#
Article

Command Prompt Explorer Bar

Rate me:
Please Sign up or sign in to vote.
4.93/5 (184 votes)
10 Jun 20023 min read 1.4M   23.9K   356   265
This tool extends explorer with functionality of a command prompt. Implemented as a band object completely in C#. Demonstrates COM Interop and P/Invoke, windows hooking and API interception. Finally you can run all these .Net SDK tools and ‘Hello World!’ programs without leaving explorer shell.

Introduction

The Command Prompt Explorer Bar is a small tool that extends Windows Explorer.

Version 1.1 is now available.

Ever tried to run one of those console programs ("Hello World!" to name a few), .BAT, .VBS or .JS scripts just to see black window popping up and disappearing? I did. Especially after I started using .Net framework I find myself doing this more often. No wonder - with all this ALs , NGENs and TLBIMPs. So if you are like me then this tool is right for you. Next time you need to run a program without GUI, just press the 'Ctrl+M' key combination in your explorer. A command prompt will start and appear automatically. Its current directory will be exactly the same as the current path you are browsing. And better yet the console will appear inside your explorer window - like any other explorer bar does - 'History', 'Favorites', 'Folders' etc. Now you can have the best of both worlds combined together - easy and fast navigation of explorer and power of batch processing of the command prompt. Or should I say Command Prompt Explorer Bar:

Image 1

Well, that is how it looks like. Isn't it a beauty?

You may have noticed a toolbar on the left of the console window. I tried to put some nice timesaving features there. The most powerful is a button with a 'Script' icon on it. It has a drop down menu where you can select a command you like to be executed. It even knows how to substitute '{0}' for the name of the current files selected in explorer. Here is when it can be useful. Let's say you want to install your assembly into a 'Native Images Cache'. With Command Bar it is as simply as selecting your assembly in explorer and clicking on 'ngen {1}' menu item. It also works just fine for multiple selected files (use {0} instead). Now you can compile your .cs or .vbs files without leaving a comfortable explorer shell. And yes, you can change this menu and scripts the way you like them. It is as simple as editing a text file in a Notepad.

And here is another (besides pressing 'Ctrl+M') way of starting this tool:

Image 2

I hope you'll enjoy this little tool. Send me your comments, requests and bug reports to PavelZolnikov@yahoo.com.

History

  • 5/31/2002, 1.0 - original version.
  • 6/11/2002, 1.1 - bug fixes. NOTE: if you were using version 1.0 and have customized macro.xml file, you might want to save its backup version somewhere before uninstalling.
    • New setup. Hopefully without issues like in previous version. Thanks to Michael Dunn for his tip.
    • Fixed an issue with CMD.EXE failing to start. CreateProcess interception is now scoped by instances of Folder Windows and enabled only if CommandBar is visible. 'Launch folder windows in a separate process’ is no more required.
    • Integrated keyboard focus with explorer. Now Command Prompt window is reachable through Tab and Shift+Tab keys.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
AnswerRe: Latest Windows Installer? Pin
Ed K12-Sep-02 11:05
Ed K12-Sep-02 11:05 
GeneralShould double-check the namespace Pin
AJ Weber11-Sep-02 9:22
AJ Weber11-Sep-02 9:22 
GeneralProblems on NT using the CPE bar Pin
Sidharth Sujir9-Sep-02 1:50
Sidharth Sujir9-Sep-02 1:50 
GeneralDrag and Drop Pin
Anonymous6-Sep-02 12:47
Anonymous6-Sep-02 12:47 
Generalproblem installing Command Prompt Explorer Bar 1.1 Pin
kjm18-Aug-02 4:03
kjm18-Aug-02 4:03 
GeneralRe: problem installing Command Prompt Explorer Bar 1.1 Pin
Member 48871029-Aug-02 15:34
Member 48871029-Aug-02 15:34 
GeneralRe: problem installing Command Prompt Explorer Bar 1.1 Pin
Anonymous16-Oct-02 12:26
Anonymous16-Oct-02 12:26 
QuestionC++ port? Pin
Anonymous14-Aug-02 14:00
Anonymous14-Aug-02 14:00 
AnswerRe: C++ port? Pin
Ed K12-Sep-02 11:06
Ed K12-Sep-02 11:06 
QuestionDoes it work in ALL Windows OS with .NET Framwork? Pin
11-Aug-02 0:29
suss11-Aug-02 0:29 
AnswerYes, Pin
t-cpu18-Aug-02 0:28
susst-cpu18-Aug-02 0:28 
AnswerRe: Does it work in ALL Windows OS with .NET Framwork? Pin
Anonymous27-Aug-02 11:50
Anonymous27-Aug-02 11:50 
AnswerRe: Does it work in ALL Windows OS with .NET Framwork? Pin
DemiG13-Sep-02 9:46
DemiG13-Sep-02 9:46 
GeneralIt does not work when I tried it in 98SE Pin
pollywoggles23-Sep-02 23:00
pollywoggles23-Sep-02 23:00 
AnswerNo Pin
pollywoggles27-Sep-02 0:56
pollywoggles27-Sep-02 0:56 
AnswerRe: Does it work in ALL Windows OS with .NET Framwork? Pin
Anonymous16-Oct-02 12:18
Anonymous16-Oct-02 12:18 
GeneralCtrl M doesn't work Pin
Komputerguy9-Aug-02 0:11
Komputerguy9-Aug-02 0:11 
GeneralRe: Ctrl M doesn't work Pin
Member 48871029-Aug-02 15:36
Member 48871029-Aug-02 15:36 
GeneralRe: Ctrl M doesn't work Pin
SMurphy16-Sep-02 9:57
SMurphy16-Sep-02 9:57 
GeneralExcellent Excellent Excellent Pin
Amos VanHorn27-Jul-02 23:14
Amos VanHorn27-Jul-02 23:14 
GeneralRe: Excellent Excellent Excellent Pin
Amir K.30-Aug-02 16:45
Amir K.30-Aug-02 16:45 
GeneralRe: Excellent Excellent Excellent Pin
Anonymous2-Oct-02 7:45
Anonymous2-Oct-02 7:45 
GeneralRe: Excellent Excellent Excellent Pin
Steve McLenithan14-Dec-02 5:10
Steve McLenithan14-Dec-02 5:10 
GeneralRe: Excellent Excellent Excellent Pin
wmoise5-Jan-03 9:17
wmoise5-Jan-03 9:17 
GeneralInstallation Problem Pin
M2Q25-Jul-02 3:51
M2Q25-Jul-02 3:51 

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.