Windows 8

How to Open the Windows 8 Command Prompt in any Folder

Since the introduction of the Graphical User Interface (GUI) in Windows, many users and administrators used the GUI instead of the good old command prompt. Although most management tasks can be performed through the GUI, many important tasks and operations still require using a command prompt window. In addition, performing actions from the command prompt window can ease the burden of running repetitive or complex commands that take the output of one command and send it to a different one. In this article, I’ll show you an easy way to open a command prompt in Windows 8, along with a method to open a command prompt without using the change directory command.

Editor’s Note: Microsoft recognizes that many system administrators still actively use the command prompt, so Windows 10 will gain additional features and functionality that will help make the command prompt even more useful.

Opening the Windows 8 Command Prompt

Opening the command prompt in Windows 8 is esentially identical to the way you used to open it in previous operating systems. You can do so either from a shortcut on the Start page, by running CMD.exe from the run or search commands, or by clicking the Winlogo + X keys and selecting the appropriate action.

However, sometimes you find that you need to change your path on the default CMD window to a different location on your computer or even in network shares. Although this can be easily done using the change directory (cd) command, it still takes tome clicks and time. So why not do it faster?

Sponsored Content

What is “Inside Microsoft Teams”?

“Inside Microsoft Teams” is a webcast series, now in Season 4 for IT pros hosted by Microsoft Product Manager, Stephen Rose. Stephen & his guests comprised of customers, partners, and real-world experts share best practices of planning, deploying, adopting, managing, and securing Teams. You can watch any episode at your convenience, find resources, blogs, reviews of accessories certified for Teams, bonus clips, and information regarding upcoming live broadcasts. Our next episode, “Polaris Inc., and Microsoft Teams- Reinventing how we work and play” will be airing on Oct. 28th from 10-11am PST.

In Windows 8 (actually, even in Windows 7 and Vista), a very nice and easy-to-use context menu shortcut was added to Windows Explorer, allowing you to quickly open a CMD window to a specific location by right-clicking and selecting the “Open Command Prompt Here” to the Explorer context menu.

This way, all you have to do to open command prompt in the folder of your choice to open Windows Explorer, find the required folder, hold the SHIFT key, and right-click on the folder. One of the context menus appearing is the “Open command window here” option.

 Open the Windows 8 Command Prompt
Opening a command prompt in Windows 8. (Image Credit: Daniel Petri)

The command prompt is immediately opened in the right path:

The command prompt is launched in the correct directory. (Image Credit: Daniel Petri)
The command prompt is launched in the correct directory. (Image Credit: Daniel Petri)

This context menu is only available when you right-click on the folder in the right pane of Windows Explorer.

Note: As far as I tested this, this feature also works in Windows 10, which is currently in Technical Preview at the time of writing this article.

As a bonus feature of this context menu, when you do this to a network share, Windows automatically and silently maps a drive to that share and disconnects the mapped drive when the command prompt closes.

Related Topics:

External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by: