![]() 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. Here’s how you do it: Method 1: Open Files in Command Prompt Via the Folder Route #įirstly, specify the directory and folder of the file you’re trying to open. 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 ind: and press Enter. If you have multiple drives on your PC, you will need to specify the target drive. However, you can easily identify the correct path by its size.īy default, the aforementioned command will search the C:\ drive. You’ll get multiple results even if there’s only a single file with that name. ![]() For this demo, I’m trying to find a file called ‘demo1.jpg’. Make sure to replace “file name” with the actual name of the file or folder you’re trying to find. Now type in dir “*file name*” /s to search for the target file on your C:\ drive. Open Windows Command Prompt in Admin mode by searching for ‘cmd’ in the Windows Search Bar and selecting ‘Run as administrator’. Find a File or Folder Using Command Prompt # Also, you can use the methods below to find and open any type of folder or file in Windows 10 command prompt (CMD), including text, video, music, and more. Note: I’m using Windows 10 for this demo, but the same methods will apply in Windows 7/ 8/ 8.1 and older. While you can do it using the Windows File Explorer, the methods detailed below will help you if you forget the full filename or don’t remember where you stored it on your computer. Here, we will show you how to find and open files using the Command Prompt. The Command Prompt offers a lot of cool tricks and lets you access a lot of Windows features, including many that are not accessible from within the GUI. Find and Open Files and Folders Using Command Prompt in Windows 10 #
0 Comments
Leave a Reply. |