9

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?

2 Answers 2

6

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...

2
  • 7
    -1 for even mentioning the hyphened site! How dare you? (Joking)
    – Kredns
    Apr 16, 2010 at 21:42
  • Judging by this page: spic.net/hplx/windows/win3.0/disk1/setup.inf the /.setup switch was used during the automated setup of verrry old versions of Windows.
    – sahmeepee
    May 14, 2011 at 8:57
3

/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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .