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.
 

Summery


RJ TextEd [/MULTI] [/MONITOR] [/COMPARE] [/DIR] [/SETTINGS]

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

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

/COMPARE

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

/DIR

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

          TextEd /DIR "MyDocuments"
 

/NOREOPEN

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"
 

/SETTINGS

Open the program using a different settings file.
 

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

/BIN

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

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