Windows Explorer From Command Line

Posted on by
Windows Explorer From Command Line 6,5/10 8037 reviews
  1. Windows Explorer From Command Line
  2. Internet Explorer 11 For Windows 10

Jul 05, 2017  How to Open an Explorer Window from the Command Prompt’s Current Directory. Say you’re in the Command Prompt, working with files and folders, and you want to access them in Explorer. Instead of navigating to them manually, you can get there with one simple command. Go ahead and open up a Command Prompt window by hitting Windows+X and selecting “Command Prompt” from the. Windows Explorer Command Line On one of my PCs running Win7 Pro 32 bit I'm getting odd behavior when I use command line switches for Windows Explorer. When I create a shortcut with the following command line it works perfectly everytime: C: Windows explorer.exe An normal Explorer window opens. This will install the Windows Update module in PowerShell. Get-WindowsUpdate Get WindowsUpdate. This command will check for updates. Install-WindowsUpdate Install WindowsUpdate. This command will install the available updates (which were listed in step 2) Run Windows Update using command line. Windows Update can also be run through legacy CMD.

Active2 years ago

I frequently find myself with a folder open in Windows, wishing to have a command prompt open with the same working directory.

I am aware of Power Toys 'Command Prompt', but that only works as a context menu item on the folder, and not from inside the folder if you are already there. I know you can navigate to the parent directory, and use it from there, but if the parent has thousands of directories in it, this is not so convenient. I have tried some home-brewed batch files associated with folder actions in explorer, but those suffer from similar problems.

So, what is the quickest way to open a command prompt with a working directory of the current windows explorer folder?

My current approach: (horrible)

  • Alt - D, Ctrl - C (copy path)
  • Win - R, 'cmd', Enter (start command prompt)
  • 'cd', Space (start a change directory command)
  • Alt - Space, e, p (paste directory)
  • Enter (execute change directory)

I know there is something better! What is it?

Hulk1991
1,80910 gold badges24 silver badges43 bronze badges
recursiverecursive
64.9k23 gold badges125 silver badges216 bronze badges

closed as off-topic by George StockerMar 26 '15 at 22:12

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • 'Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User.' – George Stocker
If this question can be reworded to fit the rules in the help center, please edit the question.

16 Answers

Hold Shift while Right-Clicking a blank space in the desired folder to bring up a more verbose context menu. One of the options is Open Command Window Here. This works in Windows Vista, 7, 8, and 10. Since Windows 10 Creators Update, the option has been replaced with Open PowerShell Here. However, there are ways to enable Open Command Window Here again.

Palec
8,3206 gold badges43 silver badges95 bronze badges
clawrclawr
7,5294 gold badges18 silver badges14 bronze badges

Just type 'cmd' to location bar, that's it. It will start a new command prompt in current path.

This solution was confirmed to work in Windows XP, Vista, 7, 8 and 10 (including Creators Update).

Keystrokes to move the focus to the location bar:

  • AltD in English (pointed out by Tim Stewart in the comments)
  • AltE in German
Palec
8,3206 gold badges43 silver badges95 bronze badges
dr. evildr. evil
17.5k26 gold badges115 silver badges194 bronze badges

Inside your current folder, simply press Shift+Alt+F --then-->Enter.

The prompt will appear with your current folder's path set.

Note: That works only in Windows 7 / Vista. What it does is that drops the 'File' menu down for you, because the 'Shift' key is pressed the option 'Open command window here' is enabled and focused as the first available option of 'File' menu. Pressing enter starts the focused option therefor the command window.

Edit:

In case you are in a folder and you already selected some of its contents (file/folder) this wont work. In that case Click on the empty area inside the folder to deselect any previously selected files and repeat.

Edit2:

Another way you can open terminal in current directory is to type cmd on file browser navigation bar where the path of current folder is written.

In order to focus with your keyboard on the navigation bar Ctrl+L. Then you can type cmd and hit Enter

dimitriskdimitrisk

Right-click the title-bar icon of the Explorer window. You'll get the current folder's context menu, where you'll find the 'command window here' item.

(Note that to see that menu item, you need to have the corresponding 'power toy' installed, or you can create the right registry keys yourself to add that item to folders' context menus.)

Rob KennedyRob Kennedy
149k17 gold badges239 silver badges424 bronze badges

As a very quick solution I can give you this. I tested this on Windows 8.1

1- Find File and Right Click on Command Prompt on File Explorer and then add command prompt to your Quick Access Toolbar:

2- After adding it you can access the folder from here:

That will open a command prompt in there for you.

Bura ChuhadarBura Chuhadar

On vista and windows 7:

  • Alt+d -> it will put focus on the address bar of the explorer window
  • and then, type the name of any program you would launch using WIN+r
  • hit Enter

The program will start with its current directory set to that of the explorer instance.e.g.:python, ghci, powershell, cmd, etc..

Raymond GauthierRaymond Gauthier

For Windows vista and Windows 7 ,to open the command prompt 1) go to folder you want to work

2)In address bar type- cmd

press enter

it will open the command prompt for that location

ShirishShirish

You can edit the registry to add the Command Prompt item to the context menu. Here are a couple of .reg files that I use.

Cmdhere.reg - for WinNT/2000/XP/Vista/7:

Doshere.reg - for Win9x:

Copy this into an empty text file and change the extension to .reg. Double-clicking on this in Windows Explorer will add these key to the registry.

ctype.hctype.h
1,1154 gold badges18 silver badges33 bronze badges

I use StExBar, a Windows Explorer extension that gives you a command prompt button in explorer along with some other cool features (copy path, copy file name & more).

EDIT:I just found out (been using it for more than a year and did not know this) that Ctrl+M will do it with StExBar. How's that for fast!

palehorsepalehorse
19.4k3 gold badges35 silver badges45 bronze badges

Almost the same as yours:

Blackberry Link 2019 Free Download. The BlackBerry Link 2019, is a management software for BlackBerry 10 smartphones, it has just get an update to Windows. The new version is Blackberry Link 1.2.0.52. This update included a new user interface, as well as the option to upgrade the device directly from the software itself. Blackberry link latest version download. Aug 08, 2018  Download BlackBerry Link for Windows PC and Mac: Blackberry Link software is the application from the Blackberry official which makes your Blackberry 10 device to the computer. It was previously known with the name Blackberry desktop software or blackberry desktop manager. Oct 03, 2017  BlackBerry Link can be easily configured, in just a few simple steps. The program, will automatically recognize your BlackBerry 10 devices when connected to computer. The integrated BlackBerry ID feature enables you to automatically associate your PC with all your BlackBerry 10 devices. BlackBerry Link is a user full data management dashboard that can easily connect your Windows PC or Mac with BlackBerry 10 devices and effortlessly enable users to sync and organize content such has music and photos. Using this app anyone who owns BlackBerry 10 device can easily transfer photos, songs and videos to and from PC or Mac, enabling much easier enjoyment in all your multimedia content.

  • Alt+d, Ctrl+c
  • Win+r
  • cmd /K cd , Ctrl+v, ENTER
Sam MeldrumSam Meldrum
12.5k6 gold badges29 silver badges38 bronze badges

If that's so bothering, you could try to switch to windows explorer alternative like freecommander which has a toolbar button for that purpose.

Gennady ShumakherGennady ShumakherDownload internet explorer 11 for window…
3,4879 gold badges34 silver badges45 bronze badges

I use a lot the 'Send To' functionality.
I create my own batch (.bat) files in the shell:sendto folder and send files/folders to them using the context menu (to get there just write 'shell:sendto' in location bar).
I have scripts to perform all sort of things: send files by ftp, launch a php server in the current folder, create folders named with the current date, copy sent path to clipboard, etc.
Sorry, a bit offtopic but useful anyway.

Ivan Ferrer VillaIvan Ferrer Villa
1,7721 gold badge21 silver badges18 bronze badges

Listen and download mp3 music. Tried the answer given by Tough Coder in Windows 7 and it works!

Create a shortcut to cmd.exe in %HOMEDRIVE%%HOMEPATH%Links, open its file properties and change the field 'Start at' to %1 ('Iniciar en' translated from spanish).

Now drag folders to it and you'll see the magic. It works too in all standard Open File dialogs. wow!

ps: those 'strange' tabs above in my picture are because I use Clover. I recommend it!

Community
Windows explorer command line hereIvan Ferrer VillaIvan Ferrer Villa
1,7721 gold badge21 silver badges18 bronze badges

This solution also work for background menu:http://www.roggel.com/NGNeer/BackgroundCMD/

hemnhemn


http://www.petefreitag.com/item/146.cfm

  • Open up windows explorer

  • Tools ->Folder Options.

  • File Types Tab

  • Select the Folder file type

  • Click Advanced

  • Click New

  • For the Action type what ever you want the context menu to display, Iused Command Prompt.

  • For the Application used to perform the action usec:windowssystem32cmd.exe (note on win2k you will want to specify the winnt directory instead of the windows directory)

elsadekelsadek

Use the following in command prompt to open your current location in windows explorer:

C:your-directory> explorer .

user2830432user2830432

Not the answer you're looking for? Browse other questions tagged windowscommand-linewindows-explorer or ask your own question.

Active2 years, 1 month ago

Is there a way to start windows 'explorer' process from command line?

Because of some problem in my Vista OS, explorer process crashes frequently (i can not see TaskBar after that) but using the open windows i can access the cmd.exe ( ctrl+alt+delete does not work). If there could be a command to start 'explorer' process again or to start the Task manager then that would help a lot.

Thanks

Edit: explorer command starts the explorer process, but alt+ctrl+del is still not working, any help?

mB.mB.

migrated from serverfault.comJun 13 '10 at 12:24

This question came from our site for system and network administrators.

5 Answers

I use task-manager. Click. File ->Run new task and write explorer. You can start task manager by pushing Ctrl + Shift + Esc. The method I described works for me when explorer crashes.

antzshrek
4321 gold badge4 silver badges18 bronze badges
DavidDavid
6943 gold badges12 silver badges22 bronze badges

A good thing to try for more stability is in Explorer > Folder Options and check the option for 'Launch folder windows in separate processes'. That way a crash in one explorer shouldn't take out all other windows.

Chris WChris W
2461 gold badge6 silver badges19 bronze badges
Sandeep BansalSandeep Bansal
5,9881 gold badge22 silver badges33 bronze badges

You can create a shortcut to C:WindowsSystem32taskmgr.exe

Synetech
58.6k30 gold badges193 silver badges327 bronze badges
Rick MohrRick Mohr

Sandeep Bansal wrote

'Win + R and then Type EXPLORER'

No, this will open one instance of windows explorer window, this doesn't start the explorer process, say, if we have killed the explorer from task manager or from batch file using 'taskkill'.

Windows Explorer From Command Line

I have seen 'start explorer' command in a batch file, which, the developer of that file says, should start explorer as a process, but that also is just opening a new instance of explorer window in my w10, and not starting the overall process.

the developer of the batch file maintains that this is the correct command to start the explorer process and, he says, there should be some setting in my box that is preventing this command to start explorer as a process.

You can r&d with this.

VSRawatVSRawat

Internet Explorer 11 For Windows 10

Not the answer you're looking for? Browse other questions tagged windows-vistacommand-linewindows-explorer or ask your own question.