Loading
View RSS Feed

Angad Kumar Shukla's blog

How To Open Folder Using Command Prompt

Rating: 35 votes, 4.66 average.
To do this, open a command prompt from the keyboard by typing Win+R, or click on Start \ Run then type cmd in the run box and click OK.

Navigate to the folder you want displayed in Windows Explorer by using the Change Directory command "cd" (with out the quotes).

In the below,screen shotI have cd to the Windows folder.
Name:  Image1.JPG
Views: 89573
Size:  7.0 KB


Now type the following command..

start .

Note:- above command is typed as start, followed by a space, followed by a period.

Name:  Image2.JPG
Views: 88413
Size:  7.1 KB


…and Windows Explorer will open to the folder location that you were in at the command prompt, and display it's contents.

Name:  Image3.JPG
Views: 89356
Size:  26.0 KB


If you want Windows Explorer to open the parent folder of the current location, just type

start ..

Name:  Image4.JPG
Views: 88194
Size:  6.3 KB


In the below screenshot, the root of C:\ is the parent folder of Windows.

Name:  Image5.JPG
Views: 88213
Size:  21.0 KB


This trick is pretty cool and very useful for any command line geek.
Also, at the beginning of this article, I mentioned the capability to open a folder location in a Command prompt, by right clicking on a folder and selecting "Command Prompt Here".

In Vista, it is included by default, but in XP it is not. If you are missing this option in XP, you can add it to the context menu by following these steps:

• Click on Start \Run then type regedit and click OK
• In the left menu tree, go to HKEY_CLASSES_ROOT\Directory\shell
• Right click on shell and select New \ Key
• Name the key Open Command Prompt Here
• Right click on the newly created key (Open Command Prompt Here) and select New \ Key
• Name the new key command
• Select the newly created command key and double-click on default value
• Enter cmd.exe /k cd %1 and click on Ok

That's all there is to it!

Submit "How To Open Folder Using Command Prompt" to Digg Submit "How To Open Folder Using Command Prompt" to del.icio.us Submit "How To Open Folder Using Command Prompt" to StumbleUpon Submit "How To Open Folder Using Command Prompt" to Google

Updated 10-02-2010 at 03:04 PM by Harsh

Categories
Windows

Comments

  1. Harsh's Avatar
    Approved!!
  2. angad's Avatar
    many thnx....will look forward to contribute more
  3. sonuaks's Avatar
    wow...its just awesome....its very beneficial
  4. guddu's Avatar
    how to open our mind? can any one give the solution?
  5. angad's Avatar
    mind is like parachute. keep in touch with our site , you will get many of such brainstorming posts.
  6. Unregistered's Avatar
    Used this for my logon script!
  7. Unregistered's Avatar
    Here is the tool provided by this site......download it and there you are you can open any folder in cmd....... http://www.madesko.com/ToolDownload.php?alfa=1
  8. neocloud's Avatar
    thanks for the information........ god bless always....
  9. Bathri's Avatar
    It is too sweet to us than normal windows style.I feel interesting and great.thanks for help friends
  10. Unregistered's Avatar
    It's very helpful
  11. Anthrope's Avatar
    There is a very similar tool to do it...it makes the work faster, specially designed for developers http://www.madesko.com/Tool_1.html



Disclaimer: Users of techforum4u.com are responsible for ensuring that any material they post (article, blog posts, images or other mulitimedia content) does not violate or infringe upon the copyright, patent, trademark, or any personal or proprietary rights of any third party, and is posted with the permission of the owner of such rights.Anyone who violates these rules may have their access privileges removed without warning.