Syntax: TextEditorPro.exe [filename] [-appinipath] [-noini] [-noskin] [-mi] [-inifilename={name}] [-inipath={path}] [-addfont=‘{filename}’]

Param Description
-appinipath or -a INI files are saved into application path instead of user application data path (e.g. C:\Users\<user>\AppData\Local\TextEditorPro).

Note! Since version 19.3.0, if TextEditorPro.ini is in the application path, the -appinipath parameter is not required.

-noini or -ni INI files are not read or written.
-noskin or -ns Disable skin-engine.
-inifilename={name} or -if={name} INI files are saved using a name instead of application name (e.g. -inifilename=TextEditorPro64).
-inipath={path} or -ip={path} INI files are saved into a defined path.
-addfont=‘{filename}’ or -af='{filename}’ Add true type fonts without installing them (e.g. -addfont=‘c:\fonts\font.ttf’). Several fonts can be added in the same way.
-mi or -m Allow multiple instances.
-search={text} or -s={text} Search from file.
-combine or -c TextEditorPro.exe -c destination.txt source1.txt source2.txt source3.txt…
Note! The encoding of the new file comes from the first combined file. There must be at least two files to combine.

Run application commands

Param Description
-runcommand or -rc TextEditorPro.exe -rc <command>
Run application command.
-runcommandfile or -rcf TextEditorPro.exe -rcf “<filename>”
Run application commands from file.
-showcommandlist or -scl TextEditorPro.exe -scl
Show the list of all commands.

Note! Command file can also be run from the application – Tools > Run command file or from the file pop-up menu.

Example

# Hello, World! 

FileNew
InsertText("Hello, World!")
// Sleep(1000);
FileSaveAs("C:\Temp\Hello.txt")
FileClose

All lines that do not start with the character are skipped.

If you need to slow down the execution to see what happens, use the Sleep(<milliseconds>) command.

Note! This is an early version and bugs may occur. Changes are expected in the next versions as automatic tests progress.