Description | Example | Return Message | Group

SetDefaultDir

Set the current default directory path

Syntax

SetDefaultDir <ApplicationPath> "<NewDirectoryPath>"

Description

The SetDefaultDir command allows you to set the directory in which STK looks first to save and retrieve files. By default, STK saves objects to the user directory specified during install. If you choose a different directory, your choice remains in effect until you change directories again.

Warning: If you insert an object from or save to a different directory using the STK user interface after you use the SetDefaultDir command, the current STK directory becomes the last directory you accessed. This means that the value entered for the SetDefaultDir command is no longer valid.

Example

To set the directory path to C:\stk\User\STKData so that all File Selection windows point to that directory:

SetDefaultDir / "C:\stk\User\STKData"

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

Scenarios

Version

4.0.5

STK Programming Interface 11.0.1