

Open a file from Windows TerminalĪfter you find the file you want to open, you can launch it without navigating through windows file explorer.

Now, if you want to change directory, use the cd command. Using dir without a directory name will show the content of the current directory. So you use dir command followed by file path or folder path. The command to view the content of a folder is the dir command. It will list file names starting with the name screenshot3 along with its directory.Īnother important thing to know is how you can view files in command prompt. /s - It is used to tell dir to search from all sub-directoriesįor instance to search a file name “data set”, I will enter” dir "\screenshot3*" /s.If used after a name(e.g data*), will search the text starting with the name data. if used before a name (e.g *data), will search for text that ends with that specific name data. \ - It is used to tell dir to search from the root directory of the current drive.Dir - It is used to list the list of files and subfolders contained in a folder.I will describe a little what the terms in the command actually means. Replace the search term with the file name that you want to search. Type the following line in command prompt window: dir "\search term*" /s From the results, click on the command prompt to open it. Type cmd in the search bar of your Windows 10 computer.

Press the Windows + X key on the keyboard to open the power menu and there click on Command Prompt.Use the Windows run box, type Windows + R enter the command cmd, and press the return key.Open the Start menu and type cmd in the search field to cli open file.Cmd Location Windows 10 and Windows 11īefore we start searching files on the command prompt, you must open the Terminal or command line. This guide works for Windows 10 and Windows 11. Using Command Prompt, you can find things quickly and open the files directly. Command Prompt is the fastest way to get things done. There is a faster way to accomplish the same thing: the Command Prompt. Finding and opening files via Windows Explorer is easy, but it takes a bit longer.
