Jump to content

Command prompt for folders anywhere in explorer


Dislocated Time

Recommended Posts

Hello.

In Windows XP there is a power tweak that I can't find for Windows 2000.

Can somebody tell me how to make a cmd, bat or reg file out of the procedure listed below so that I can

open a command window wherever I am in the explorer? (preferably a reg file)

1. In Windows Explorer, open the Tools » Folder Options menu item.

2. Select the File Types tab.

3. Press the letter ‘n’ on your keyboard to scroll to the N/A section.

4. Select the entry labeled Folder.

5. Click the Advanced button.

6. Click the New button.

7. In the action field, type “Command Prompt” (without the quotes).

8. In the application field, type “cmd.exe” (without the quotes).

9. Save all your changes (click OK on each dialog) and exit the Folder Options dialog.

Once I perform thos steps, I'm able to right click a folder and select the “Command Prompt” menu item to open a command window.

That's what I want in my unattended W2K install, but I don't know how to automate this.

Link to comment
Share on other sites


This command should do what your after.

:: **** Command Prompt Here

REG ADD "HKCR\Directory\shell\Command Prompt Here\Command" /f /t REG_SZ /ve /d "cmd.exe /k cd %%1"

Link to comment
Share on other sites

This really isn't the best place to ask such a question, but nonetheless, here you go mate :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here]

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\Command]
@="cmd.exe /k cd %1"

:)

Edit : Beaten by 7yler :)

Edited by Martin H
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...