Navigation: <Root level>

Command line

 

 

 

 

The command line options available in MPad.
 

NOTE that more advanced combinations of command line options are not supported.

E.g. TextEd <file 1> /MULTI <file 2> /MONITOR <file 3> , is not going to work. Keep it simple.
 

Summery


RJ TextEd [/MULTI] [/MONITOR][/HEX] [/CP=<code page>] [/C] [/RL] [/L:x] [*] [file 1] [file 2] ...

 


Command line options


The command line options are not case sensitive. You can just as well use /multi.
 

/MULTI

Open a new instance of the program. All files added to the command line will be opened in the new window.
 

          TextEd /MULTI "File.txt" (will open the File.txt in a new instance.)
 

/MONITOR

Open files as log-files and start monitoring the files.
 

          TextEd /MONITOR "F:\MyLogFile.log" (will open the log file and start the monitoring.)
 

/HEX

Open the given files in hex mode. The files are treated as binary files.
 

/CP=<code page>

Open a file using a specified encoding or code page.
 

          TextEd /CP=65001 "File.txt" (will open the file as UTF-8 encoded.)
 

/C

Close the files given as parameter if they are open.
 

/RL

Reload the file if it is already opened. Otherwise just open the file.
 

/L:X

Position the text cursor at line x.
 

          TextEd /L:8 "File.txt" (will open File.txt and position the text cursor on line 8.)

*

Use * to open several files.
 

          TextEd "F:\Source\*.cpp" (will open all files in the \Source\ folder with the file extension .cpp.)
 

<file> <file> ...

Open one or several files.
 

          TextEd "myfile1.txt" "myfile2.txt" "myfile3.txt"


 

 


 

 

 

 

Copyright © 2022 Rickard Johansson