Description | Example | Return Message | Group

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.

Note: 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.

Note: The City and Facility options will Nack if a Scenario has not been created.

Example

To return the path of the default user directory:

GetDirectory / DefaultUser

ReturnMessage

C:\Users\stkUser\Documents\STK 11

Example

To return the path of the Facility database:

GetDirectory / Database Facility

ReturnMessage

C:\ProgramData\AGI\STK 11\Databases\Facility

Group Membership

This command belongs to the following group(s):

Application Options

Scenarios

Version

9.2.1

STK Programming Interface 11.0.1