Categories: Run commands

Open Wordpad from command line

Use the command ‘Write‘ to open WordPad application from command line, where WordPad is installed. Normally one would assume that the command would be wordpad if it can be launched from command line. But in this case it is Write. No idea why is it so.

write

This works on Windows 10, Windows 11 releases before 24H2, and older systems where WordPad is installed. Microsoft removed WordPad and write.exe starting with Windows 11 version 24H2 and Windows Server 2025, so the command is no longer available there.

However, we can use either wordpad or write from Run window. We can specify file name as an argument to these commands.
For example:

write "C:\My Documents\notes.rtf"

Use the path of your file, with double quotes if it contains spaces.

On versions without WordPad, Microsoft recommends Word for rich-text documents such as .rtf files and Notepad for plain-text files such as .txt files.

Srini

View Comments

  • I'm running Wordpad from within an app I'm developing. I create a .WRI file and then use the shellexecute API to open the file. Shellexecute in Win 10 only prints .DOC files (If Word is available). I'm looking for a list of command line options for wordpad so I can send then via Shellexecute to Wordpad. Any help?

  • you clearly don't remember Windows Write - Wordpad's more(!) primitive progenitor from 16-bit Windows

    • Try using the full path for wordpad:
      "%ProgramFiles%\Windows NT\Accessories\wordpad.exe"
      then type a and the path of the file u want to open. This worked for me on Windows 10.

      Hope this helps.

      Best Regards,
      G

Recent Posts

Manage Print Jobs in Windows 11 & 10 Using PowerShell

Use PowerShell to list, pause, resume, and cancel print jobs in Windows 11 and Windows…

1 day ago

Add New User Account from Command Prompt (CMD)

Create local or domain user accounts from Command Prompt in Windows 11 and Windows 10…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows Command Prompt (CMD)? This post explains…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find Windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago