12 Users Commented In This Post

Subscribe To This Post Comment Rss Or TrackBack URL
Obi-Wahn says:

Well I’m not sure if this hack was on ghacks allready, but to get a Shell-Context-Menu entry to open the command prompt in a choosen folder, just save this:

;start here
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@=”Open Command &Promt here…”

[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@=”cmd.exe /k \”cd %L\”"

[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@=”Open Command &Promt here…”

[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@=”cmd.exe /k \”cd %L\”
; end here

into a file (commandprompt.reg) and add it to your registry.

Martin says:

No it has not yet Obi, thanks for mentioning it.

Vivek says:

Nice hack! That’s really clever :)

anubhav says:

no this does not work

Manju says:

Hey anubhav, that does work.
Thanks Martin.

Tim says:

anubhav, it does work. You’ve got to create the key if it isnt there, create it as a string then edit it to the path.

pk says:

xp wont let me add to reg.
can not import, not a reg script, only import binary reg. files.

del says:

then do it manually

Daniel says:

sorry im pretty newb. whats this thing that obi posted do? if its complicated then either dont worry or link me to something. thx.

Hank says:

I actually had a different starting directory and wanted to get back to c:\

This regedit definitely worked for me.

Does anyone know how to do it from the command prompt w/o regedit though?

Rarst says:

>Does anyone know how to do it from the command prompt w/o regedit though?

Well, cmd help points to those registry settings… If you really want to play around it you can just make .bat (.cmd) file that runs console and goes to directory needed. Something like this:

cmd /k cd “c:\”

Kent says:

Hi Rarst
You can open command prompt from a drive by shift right clicking the drive and clicking on the open command prompt here on the popup menu
Kent

Leave Your Comments Below
Hello, please leave your thought below

Please Note: Each comment will be manually approved by an admin. There is no guarantee that a comment will be posted. Please do not submit the comment multiple times.