Method 2: Open Files in Command Prompt Directly
#How to open command prompt windows 10 windows#
Windows will open the file using the default app associated with that file type. Finally, type-in "demo2.jpg"(including quotes) and press Enter.Now access the target folder with the following command: cd demo folder/.You can drop this step if you’re trying to open a file in drive C. For that, type in d:and press Enter as detailed in the earlier segment. So, we’ll first get to the root of the D: drive. In my case, the target file lies in a folder called ‘Demo Folder’ at the root of the D: drive. Firstly, specify the directory and folder of the file you’re trying to open.Method 1: Open Files in Command Prompt Via the Folder Route Once you know the precise path of a file (image, text, video, music) or folder, you can easily open that using the Command Prompt in Windows 10. I’m putting the asterisk at both ends to find all files that include the search text, whether at the start, end or somewhere in between. Putting the wildcard at the end will find all the files with your search term at the beginning of the name, while putting it at the start will list all files with your search term at the end. Now just use the dir "\*file name*" /s command described earlier to find your target file or folder.ĭo note that you can also use just one asterisk (instead of two), either at the start or at the end of the filename. For example, to search the D:\ drive, you should type in d: and press Enter. If you have multiple drives on your PC, you will need to specify the target drive.
![how to open command prompt windows 10 how to open command prompt windows 10](https://static.techspot.com/articles-info/1724/images/2018-10-13-image-7.png)
By default, the aforementioned command will search the C:\ drive.However, you can easily identify the correct path by its size.
![how to open command prompt windows 10 how to open command prompt windows 10](https://i.ytimg.com/vi/MhwX8_ohOD8/maxresdefault.jpg)
You’ll get multiple results even if there’s only a single file with that name.