Navigation: Realtest Script Language >

File Path Specification





There are several places in a RealTest script where a file path is called for.

Script elements that require a file path include: DataFile, IncludeList, TradeList, SaveScanAs, and several others like these.

Unlike most other software where file paths are specified, RealTest neither requires nor allows quotation marks around the path, even when it contains embedded spaces. This saves you from having to remember to type quotes, and makes it more natural for the script editor to suggest multiple choices when you've typed part of the path.

As mentioned under File Paths earlier, RealTest supports both absolute and relative file paths.

Absolute paths typically begin with a drive letter, e.g. C:\Program Files\RealTest\Examples\Combined.rts

Relative paths might be just a file name, e.g. Combined.rts, or the end of a path, e.g. Examples\Combined.rts

When relative paths are used, they are relative to your User Path, as specified in the Program Options Dialog. By default this is the same path where you installed RealTest, i.e. the folder where your RealTest.exe file is found.

RealTest also supports a special syntax within any file path that can be used to insert a known item into the path. The following table lists these elements.




the current date in YYYYMMDD format


the next market date after the end date of a test (for order list files)


the current time in HHMMSS format


the full path to your Windows desktop folder


the full path of the current script, without the name


the full path of the current script, with the name

Additionally, any Windows environment variable can be specified, e.g. ?programdata?, ?onedrive?, etc.




Copyright © 2020-2021 Systematic Solutions, LLC