Notepad switches

9

1

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?

Homer

Posted 2010-04-16T20:43:04.467

Reputation: 559

Answers

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

Hugh Allen

Posted 2010-04-16T20:43:04.467

Reputation: 8 620

7-1 for even mentioning the hyphened site! How dare you? (Joking) – Kredns – 2010-04-16T21:42:15.390

Judging by this page: http://www.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 – 2011-05-14T08:57:42.967

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

Mike

Posted 2010-04-16T20:43:04.467

Reputation: 31