Notepad switches

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

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

/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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like