Navigation: TextEd > Introduction >

Command line





The command line options below are available in RJ TextEd version 11.21 or above.

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.



              [/BIN] [/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.


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


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

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


Open two files to compare them side by side.

          TextEd /COMPARE "File1.txt" "File2.txt" (will open File1.txt to the left and File2.txt to the right and enter compare mode.)


Set a default save path for new files. This can be set in options as well.

          TextEd /DIR "MyDocuments"


It allows you to open the editor without reopen the last open files.

The next time you open the editor without this option - the old last open files are reopened.


          TextEd /NOREOPEN "File.txt"


Open the program using a different settings file.

          TextEd /SETTINGS "F:\MyData\TextEd.ini"


Open the files as binary files and display in text mode. You can toggle between text and hex mode once the file is opened.


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


Close the files given as parameter if they are open.


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


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 © 2024 Rickard Johansson