Create or Customize Environments Using the DSYEnvMgt Command
The DSYEnvMgtcommand is available creating and customizing both user and global environments.
Running the Command
The command is located on Windows in:
C:\Program Files\Dassault
Systemes\B424\win_b64
\code\bin\DSYEnvMgt
Syntax
The full list of options for the command DSYEnvMgt is as follows:
DSYEnvMgt -create|-del [-e EnvName] [-d PathEnvDir|INSTALL] [-p ConcatPath] [-from Env|PathEnv] -h
Parameter | Description |
---|---|
-create or -del | Create or delete an environment file (mandatory) |
-e | Name of the environment to create or delete (optional). An existing environment with the same name is always overwritten. If not used, default name for the environment file is "Env". |
-d PathEnvDir|INSTALL | Environment file storage folder: the directory
is not created if it does not exist (optional).
|
-p ConcatPath | Concatenation path: multiple paths can be specified (for
creation only, optional). Default value:
When used with
|
-from Env|PathEnv | Create a new environment
file from an existing one (for creation
only, optional). You can specify either the name of the environment or its full path. |
-h | Displays help |
Examples
Command | Result |
---|---|
DSYEnvMgt -create | Create an environment file named Env.txt in the directory C:\Users\user\AppData\Roaming\DassaultSystemes\CATEnv |
DSYEnvMgt -create -e Env1 | Create an environment file named Env1.txt in the directory C:\Users\user\AppData\Roaming\DassaultSystemes\CATEnv |
DSYEnvMgt -create -e Env1 -d INSTALL | Create an environment file named Env1.txt in the directory
|
DSYEnvMgt -create -e Env1 -from "C:\Program Files\Dassault Systemes\B216\CATEnv\Env.txt" | Create Env1.txt in C:\Users\user\AppData\Roaming\DassaultSystemes\CATEnv |
DSYEnvMgt -create -e Env1 -from Env -d INSTALL | Create Env1.txt in
|
DSYEnvMgt -create -e Env2 -from Env1 -p C:\MyCusto | Create the new environment Env2 from a copy of Env1 in the default user storage directory: C:\Users\user\AppData\Roaming\DassaultSystemes\CATEnv and adds C:\MyCusto to the path found in Env1 |
DSYEnvMgt -create -e Env2 -from Env1 -p C:\MyCusto -d INSTALL | Create the new environment Env2 from a copy of Env1 in the default installation storage path: and adds C:\MyCusto to the path found in Env1 |