Wordpad Command Line Options

Techwalla may earn compensation through affiliate links in this story.

Wordpad can be a very useful program for any computer user, and it is a good idea for everyone who uses a PC to become familiar with this easy-to-use and lightweight word processor. Wordpad can provide many of the same advantages of Microsoft Word and similar programs, combined with the ease of use and low resource requirements of simpler and less flexible programs like Notepad.


Open Any Supported Text File in Wordpad

Wordpad is one of the most versatile programs computer users have at their disposal, and one of its chief benefits is the ability to open and work with many different types of files. Among the files Wordpad works with are Microsoft Word (.doc) files, rich text format (.rtf) files, Microsoft Write (.wri) files and plain text (.txt) files. This versatility allows computer users to swap files with many different programs, making it easy to work with many different formats quickly and easily.


Video of the Day

To quickly open any file using Wordpad, simply click on "Start," choose "Run" from the file menu and type "write.exe filename". This simple command line utility makes it easy to open any .txt, .doc, .rtf, .wri or other compatible file in Wordpad.

Wordpad also provides a fast and easy way to print any compatible text or Word document right from a DOS window or command line. To print a compatible .doc, .rtf, .txt, .wri or other document right to your default printer, simply open up a DOS window (or click "Start > Run") and type the command "write.exe /p filename". This command line utility will automatically send the document you choose to your default printer.


Sometimes, you may want to print a Wordpad-compatible document to another printer in your home or office network. To specify a printer other than your default printer click on "Start," choose "Run" and type "write.exe /pt TextFileName PrinterName [ DriverName [ PortName ] ]". Alternatively, you can open up a DOS window and type the same command.