Arbortext Command Language > Functions by Alphabetical Listing > get_appdata_dir
  
get_appdata_dir
get_appdata_dir ([subpath[, flags]])
When called with no arguments, this function returns the full path to the application data directory.
This directory typically is: C:\Documents and Settings\<login>\Application Data\PTC\Arbortext\Editor
The APTAPPDATADIR environment variable can be used to override the default location.
subpath — Optional. A relative directory structure such as onedir\twodir. When subpath is given, the function returns a full path to the given subpath of the application data directory.
flags — Optional directory options. The following bit values are supported in the flags parameter.
0x0001 — Ensure the returned directory structure is fully created
0x0002 — Causes get_appdata_dir to return a local (non-roaming) application data directory such as: C:\Documents and Settings\<login>\Local Settings\Application Data\PTC\Arbortext\Editor
If errors are encountered, the return value will be an empty string and main::ERROR will be contain an error message.
Example:
path = get_appdata_dir('acme/customizations', 0x01);
Related Topics
appdata predefined variable