Command Line
The editor supports command line parameters specifying files to be opened, it allows multiple files to be specified in the command line. Each of the files specified will be opened when the editord starts up. The filenames on the command line should be separated with a space.

Usage Examples
You will find bellow some samples with common command line usage
PTSource.exe test.c test.h will open two files (“test.c”, “test.h”).

For long filenames, they should be enclosed in quotes “”. i.e.

PTSource.exe “long file name.txt” will open the file named “long file name.txt”.

The editor supports wildcard characters to open files on the command line, it will accept any normal wildcard specification for files to be opened. i.e.

PTSource.exe *.c will open all files with the “.c” extension.

To specify the line number at which to position the cursor when the file is opened, the line number should be specified with '/L' switch. i.e.

PTSource.exe /L:5 test.c will open the file with the cursor positioned at line 5.

To prevent the editor of loading the last opened documents you can use the switch /safe. This will cause the editor to instead open a blank document. i.e.

PTSource.exe /safe or PTSource.exe -safe

We use cookies to personalize and enhance your experience on our site. By using our site, you agree to our use of cookies.
  More information about cookies