TIL executing commands in Windows explorer
===========================================
Introduction
-------------
Today I learned that executing commands in the Windows file explorer address bar works!
I discovered this by accident when my focus was in the wrong window. I used ⊞ win + E (file explorer) when I really meant ⊞ win + R (run command). A happy little accident.
How does it work?
------------------
- Start explorer.exe
- Go to the address bar (protip: Alt + D or Ctrl + L )
- Enter cmd
This starts a command window with the current directory as working directory. Ain’t that nice?
Illustrated guide
------------------
- Step 1 - open file explorer -
(DIR)
(IMG) Step 1 - open file explorer (.png)
- Step 2 - enter a command -
(DIR)
(IMG) Step 2 and Step 3 - enter a command (.png)
This happens to work with all kind of commands. Try dotnet run , php -S localhost: 8080 , npm start or python3 -m http.server depending on your favourite platform.
The other way around
---------------------
If you are in a command shell, enter:
and it will open explorer.exe within the current directory.
(DIR) previous WordPress REST API
(DIR) next Simple HTML tree
Related
--------
(DIR) Delphi Tetris
(IMG) Delphi Tetris (.png)
(DIR) My .sqliterc
(TXT) /img/fallback.svg (.svg)
(DIR) Fast! Fast. Fast?
(TXT) /img/fallback.svg (.svg)
(DIR) One SVG to rule them all
(TXT) SVG element (.svg)
(DIR) Running Go tests in VSCode with CGO
(TXT) Goofy gopher (.svg)
(DIR) TIL verbose console logging
(TXT) /img/fallback.svg (.svg)