GetDirectory
Return the path of the selected directory.
Syntax
GetDirectory <ApplicationPath> {DirOption}
Description
The GetDirectory command returns the path of the directory specified by the {DirOption}. The following table describes the values for {DirOption}.
{DirOption} | Description |
---|---|
DefaultUser | Returns the default user data directory. |
UserData | Returns the current user data directory. In STK Help this is indicated by <STK user area> |
STKHome | Returns the STK install folder. |
Config | Returns the user's configuration directory. |
Scenario | Returns the current Scenario directory.
This option will Nack if a Scenario has not been created. |
AllUsers | Returns the directory that contains STK application data for all users. In STK Help this is indicated by <STK all users area> |
Database {Satellite | City | Facility} | Returns the specified database directory.
The options: Satellite, City and Facility are case sensitive. The City and Facility options will Nack if a Scenario has not been created. |
Examples
To return the path of the default user directory:
GetDirectory / DefaultUser
Return message
C:\Users\stkUser\Documents\STK 12
Examples
To return the path of the Facility database:
GetDirectory / Database Facility
Return message
C:\ProgramData\AGI\STK 12\Databases\Facility
Group membership
This command belongs to the following group(s):
Version
9.2.1