Gold mine of Visual C++ tricks!
How to take command Prompt with default path as Selected Folder Path.
![]()
Usually in huge frameworks, we’ve to run a lot of console applications for starting up the system. Sometimes we’ve to start it by specifying long commandline arguments. In those cases, instead of double click and running the application, usually we take command prompt and start applications by entering commandline.
When, Console opens, it points to the default path and we’ve change the directory to required folder by CD command. Is there any easy way to start command prompt with default path as selected folder in Windows explorer? Yep! there is.
![]()
Just do the following steps.
1) Take Windows explorer.
2) Take Tools > Folder options.
3) Take File Types tab.
4) Select “Folder” Filetype.
5) Click advanced.
6) Click “New”
7) Now give Action: “Cmd” and application used to perform action as “cmd.exe”
8 ) Now, click ok in all dialogs.
9) Now press WinKey+E to see the windows explorer.
10) Now right click on any of the folders in tree and you can see the menu item cmd.
11) Now click on that, a new console will be opened with default path as selected folder’s path.
![]()
Targeted Audience – Beginners.
| Print article | This entry was posted by Jijo Raj on April 22, 2008 at 5:41 pm, and is filed under Debugging Tips. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
i was searching for this in net atlast i found today
about 1 year ago
Feels so happy that my efforts have meaning.
about 7 months ago
This trick is good,but what’s the way to revert this kind of a change.
Send me the response ASAP.
Thanks n Regards,
Ady.
about 7 months ago
Hi Ady,
To revert the change, just do the opposite. Delete the newly added action – “Cmd” for filetype – folder.
Regards,
Jijo.