Command Line Switches Notepad2.exe [encoding] [line-ending-mode] [/e id] [/g ln[,col]] [/m[-][r|b] text] [/l|/l0] [/q] [/s ext] [/d] [/h] [/x] [/c] [/b] [/n|/ns] [/r|/rs] [/p x,y,cx,cy[,max]|/p0|/ps|/p[f|l|t|r|b|m]] [/t title] [/i] [/o|/o0] [/f ini|/f0] [/u] [/z ...] [/?] [+|-] [file] ... file File to open, can be a relative pathname, or a shell link. Must be the last argument, no quoted spaces by default. + Accept multiple file arguments (with quoted spaces). - Accept single file argument (without quoted spaces). ... Desired file encoding (can be one of /ansi, /unicode, /unicodebe, /utf8 or /utf8sig). ... Desired line ending mode (either /crlf, /lf, or /cr). /e Specify file source encoding. /g Jump to specified position, /g -1 means end of file. /m Match specified text (/m- last, /mr regex, /mb backslash). /l Auto-reload modified files; /l0 disable change notification. /q Force creation of new files without prompt. /s Select syntax scheme associated with specified extension. /d Select default text scheme. /h Select Web Source Code scheme. /x Select XML Document scheme. /c Open a new Notepad2 window and paste the clipboard contents. /b Open a new Notepad2 paste board to collect clipboard entries. /n Always open a new Notepad2 window (/ns single file instance). /r Reuse Notepad2 window (/rs single file instance). /p Set window position to x,y with size cx,cy, optional max set to nonzero to zoom; /p0 system, /ps internal defaults; /p(f)ull,(l)eft,(t)op,(r)ight,(b)ottom,(m)argin. /t Set window title. /i Start as tray icon. /o Keep window on top; /o0 do not keep window on top. /f Specify ini-file; /f0 use no ini-file (don't save settings). /u Launch with elevated privileges. /z Skip next (usable for registry-based Notepad replacement). /? Display a brief summary about command line parameters.