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.

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.

Examples

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"

Return message

Group membership

This command belongs to the following group(s):

Scenarios

Version

4.0.5