Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What command line switches exist for Notepad?

I found a few:

/A <filename> opens file as ANSI
/W <filename> opens file as Unicode
/P <filename> prints filename

Are there others?

share|improve this question
up vote 4 down vote accepted

From Source of below info:

...command line arguments notepad takes

/A <filename> open file as ansi
/W <filename> open file as unicode
/P <filename> print filename
/PT <filename> <printername> <driverdll> <port>
/.SETUP some weird stuff is happening i cant identify...

share|improve this answer
-1 for even mentioning the hyphened site! How dare you? (Joking) – Lucas McCoy Apr 16 '10 at 21:42
Judging by this page: the /.setup switch was used during the automated setup of verrry old versions of Windows. – sahmeepee May 14 '11 at 8:57

/S suppresses the file-not-found prompt (you still get another prompt).

You can also use CMD.exe to control window size (and pipe input):

cmd.exe /c start /max notepad.exe c:/temp/toto.txt

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.