04 Votes

Windows Command Line: Open WordPad with File

Question by Guest | 2013-07-01 at 23:55

I would like to open the application WordPad by using the command prompt (CMD) in Windows. If it is possible, I would like to pass the path to a file so that the file is directly opened in WordPad.

Unfortunately, the commands "wordpad" or "wpad" are not working and I only get a hint that the command is written in a wrong way or could not be found. On the other hand, when entering "notepad", the Windows Editor is opened. How can I do this with WordPad?

ReplyPositiveNegative
4Best Answer6 Votes

The command to open WordPad is not "wordpad" or "wpad" - it is "write" - don't ask me why:

write C:\test.doc

Entering "write C:\test.doc" opens the file test.doc in WordPad. When doing this, it doesn't matter from which directory you are calling "write", it is possible everywhere.
2013-07-04 at 12:49

ReplyPositive Negative
Reply

Related Topics

VirtualBox: Change Date and Time

Tutorial | 10 Comments

PHP: File Download Script

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.