Right Click to Open Command Prompt in Directory
Here's a handy tip that I got from a co-worker, who found it in the book Microsoft Visual C# .NET Step by Step. It creates a shortcut in the right click context menu of Windows Explorer to open a command prompt in the current directory. When I need to run scripts in a very long directory name, this is very handy.
So here's how you set it up:
- Open up windows explorer
- Tools -> Folder Options.
- File Types Tab
- Select the
- Click Advanced
- Click New
- For the
Actiontype what ever you want the context menu to display, I used
- For the
Application used to perform the actionuse
c:\windows\system32\cmd.exe(note on win2k you will want to specify the winnt directory instead of the windows directory)
You can also use this feature to attach context actions to file types. Or if you want to create a right click open with option for any file type (for instance I like to be able to open any file with notepad, see: my blog entry here.
Like this? Follow me ↯Tweet Follow @pfreitag
You might also like:
- Right Click - Edit with Notepad - March 18, 2003
- Seinfeld's Productivity Tip - July 24, 2007
- Apple 30 Inch Cinema Display Boosts Productivity up to 73% - March 27, 2006
- Increase Productivity with Action Tagging - August 1, 2005
- xcopy - Handy tool on windows - December 9, 2003
- FTP Scripts on windows - January 31, 2003
- Uptime for Windows 2000, 2003, XP and NT - October 13, 2002
-goto run then type regedit
-modified the default data value to "none"
I need to read the files in the selected folder, for that I have to find out the name of the selected folder.