The "-admin flag goes inside the quotes of the cnext.exe
argument. Like this:
"C:\Program Files\Dassault
Systemes\B28\win_b64\code\bin\CATSTART.exe" -run "CNEXT.exe -admin"
-env CATIA.V5R28_64 -direnv "C:\Documents and Settings\All
Users\Application Data\DassaultSystemes\CATEnv" -nowindow
However, you need other flags as well; -env for the environment
name and -direnv for the environment folder path.
see CATSTART.exe -help below:
GOAL : start CATIA V5 applications
SYNTAX : catstart
[ -env environment_name ]
[ -direnv environment_directory ]
[ -object object ]
[ -run program_name ]
[ -jrun java class or jar ]
[ -jopts options for the jvm ]
[ -s ]
[ -h|-help ]
-> env: followed by environment name used by CATIA V5
-> direnv: followed by environment directory used by CATIA
V5
-> object: followed by object to load when starting CATIA
V5 or followed by arguments between "" (-object "arg1 arg2
argn")
-> run: followed by program to start(DMU, ENOVIA, DELMIA,
CATNodelockMgt, CATSoftwareMgt). Without run argument CATIA V5
is started
-> s: silent mode (no messages)
-> h|help: get info on the shell
Here are the CNEXT Options, these are the options normally
included with in the CNEXT.exe quotation marks.
Usage: CATIA [OPTIONS]
Common options: /? | /h | /help Prints this message.
-e cnext_command [arguments] Starts
CATIA and executes the passed in command.
-batch Starts CATIA in batch mode.
-workbench Launches CATIA and activates the specified workbench
(see workbench names in Start menu).
-macro macro_file Starts the specified macro.\
-admin Starts CATIA in administrator mode for the purpose of
locking settings.
-object Starts CATIA and loads the specified object.
Windows specific options:
-env env_name Starts CATIA with the
given environment.
/regserver Registers CATIA as an OLE server.
/unregserver Unregisters CATIA OLE server.
/embedding Starts CATIA as an invisible OLE server.
SteveR in Woolley, WA