Quickly View File Contents Using Windows Command Prompt

It is possible to view contents of any file directly using the Windows command prompt.

To do this :

1. Open Windows command prompt (Windows orb > in search box, type “command prompt” or All Programs > Accessories > Command Prompt).

2. Simply type the following :

type filename.ext

Displaying the contents of a text file through Windows command prompt

Opening log files through Windows command prompt

This will display the contents of file specified. (Ensure that the correct file path is specified, like –  type “D:\drafts\today.txt” )

Pretty handy when viewing log files as well as text files, all from within the Windows command prompt.

Comments are closed.