1 How to Open a File in Command Prompt2 How to Open a Folder in CMD3 Extra: How to Stop, Start, and Restart a Service with Command Prompt4 Extra: How to Run Windows Defender from the Command Line
To do so, we’ll be making use of the new Windows Terminal application, which allows you to quickly access CMD, PowerShell, and more. How to change directory in command prompt As part of the process, this tutorial will briefly cover how to navigate to files in CMD. It won’t, however, show you how to open Command Prompt in a specific folder, as we already have a tutorial on that here. With that said, lets’ get started:
How to Open a File in Command Prompt
How to Open a Folder in CMD
Extra: How to Stop, Start, and Restart a Service with Command Prompt
As we mentioned, there are hundreds of things you can do with Command Prompt rather than using the UI. One of them is managing your services. You can learn how by following our dedicated guide here.
cd C:\Users\User Name\Desktop\wonder We know that the file is called “cafe” and is a jpeg filetype, so to open it we can just type “cafe.jpg” and press Enter. If you’re unsure what your file is called, you can type ls while in a folder. This will list every file inside of it in CMD.
cd C:\Users\Maria Winbuzzer\Desktop\wonder “2019.xlsx”
start %windir%\explorer.exe “C:\Users\Maria Winbuzzer\Desktop\wonder”
Extra: How to Run Windows Defender from the Command Line
You can also run Windows Defender from Command Prompt, updating it, performing scans, and more. Follow our existing tutorial to find out how.