Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Command Prompt Trick

Page: 1 of 1
 tk102
06-26-2004, 10:20 AM
#1
Here's a trick you can use to easily get to a command prompt from Windows Explorer. Take the following and put it into notepad.
Windows Registry Editor Version 5.00

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

(make sure that 2nd ] is on the same line -- darn it)

Save the file as "cmdprompt.reg". Once the file has a .reg extension, double click on it to Merge it with your registry.

Now from Windows Explorer, you can right click on any folder and choose Command Prompt and tada, you have a command prompt in that folder.
 Darth333
06-26-2004, 10:23 AM
#2
Nice :) I'll add this to my newbie guide.
 Lorden Darkblade
06-26-2004, 10:27 AM
#3
It didnt worked for me.
I get a error msg.
I'm brazilian so I'll put here what I think that is the correct translation:

This file has no program associated with it to do this action. Create an association in the Control Panel "Folder Options"

Sorry if this is not a good translation.
I dont think I have a good english.
 tk102
06-26-2004, 10:31 AM
#4
Ah, sorry about my English-centric tip...

Here's how you can do it another way (also for those scared of merging .reg files)

open explorer anywhere
View -> Options... -> File types (tab)
Find and select the "Folder" item in the "registered file types" box click on "Edit" and you get the "Edit File Type" window click on "New" and you get "New Action" window Name it "Command Prompt"
In the Application to Perform this Action, type: cmd.exe /k "cd %L"

See: http://www.adriansrojakpot.com/Other_Articles/Win2K_Tips/Directory_Command_Prompt/Folder_Option.htm)
for pictures.
 Lorden Darkblade
06-26-2004, 10:37 AM
#5
It worked but now I have 2 options to enter the Command Prompt.
One works and the other dont.
Page: 1 of 1