Tip

Find that buried command line executable, part 2

This tip was submitted to the SearchWin2000.com tip exchange by member Tim Fenner. Please let other users know how useful it is by rating it below.

Did you know that it's possible to drag and drop any file, not just executables (EXE, BAT, etc.) directly into a DOS window? Open an MS-DOS window, navigate to the file, left click and drag onto the DOS window. Then add desired switches. This method also leaves the command window open so you can see the results or errors that occur.

A faster method is to use this previous

    Requires Free Membership to View

tip submitted by Ott Brendon: 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. Scroll down the Registered File Types listing until you get to the one marked "N/A File Folder."
  2. Select "N/A File Folder" and click on Advanced. 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.'
  3. 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."
  4. Click OK and close the related open windows. The next time you are file browsing the hard drive, 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 NT 4.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 four, five and six 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 October 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.