Put a command line shortcut in your mouse's right click menu

Create a command line shortcut in your mouse's right-click menu that will open the command line window in a specific folder that you select.

This tip was submitted to the SearchWin2000.com tip exchange by member Ott Brendon. Please let other users know...

how useful it is by rating it below.


If you prefer to use the command line for some tasks, you can create a command line shortcut in your mouse's right-click menu that will open the command line window in a specific folder that you select.

For Windows 2000:

  1. From your file browser, select Tools -> Folder Options, then click on the File Types tab.

  2. Scroll down the Registered File Types listing until you get to the one marked "N/A File Folder."

  3. Select "N/A File Folder" and click on Advanced.

  4. In the Edit File Types menu, click New and then, in the "Action" field, type the name you want in the right click menu -- e.g. 'Command.'

  5. In the "Application used to perform action" field, use the browse button to find cmd.exe and add /k cd %1 to the end of the command line -- e.g. "C:\WINNT\system32\CMD.EXE /k cd %1."p>
  6. Click OK and close the related open windows. Next time you are file browsing the HDD, just right click on any folder, select the new "Command" option and the system should open a new command window to the path you just selected.

For Windows NT4.0:

  1. From your file browser, select View -> Folder Options, then click on the File Types tab.

  2. Scroll down the Registered Files list until you get to the one marked "File Folder."

  3. Select "File Folder" and click the Edit button, then the New button.

  4. Follow steps 4, 5 and 6 as per the Win2k version above.

Just one warning: If you make a mistake in Win2k, you may need to perform a registry edit to remove the dud command you have created. I found it under HKEY_CLASSES_ROOT\Directoryshell\Command.

This was first published in June 2003

Dig Deeper on Windows legacy operating systems

PRO+

Content

Find more PRO+ content and other member only offers, here.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchVirtualDesktop

  • VDI assessment guide

    Wait! Don't implement VDI technology until you know your goals and needs. A VDI assessment should consider the benefits of a VDI ...

  • Guide to calculating ROI from VDI

    Calculating ROI from VDI requires a solid VDI cost analysis. Consider ROI calculation models, storage costs and more to determine...

  • Keep the cost of VDI storage under control

    Layering, persona management tools and flash arrays help keep virtual desktop users happy and VDI storage costs down.

SearchWindowsServer

SearchExchange

Close