Add-OemEnvironmentPath

Extension of the PATH statement in any batch file (*.BAT).


Settings:

  • Name of the batch file
    The name (with path if necessary) of the batch file to be changed.
  • PATH extension
    Directory path to be added to the PATH. The use of variables is possible. Use the "..." button to select an existing directory (on the packaging system) or enter the path manually.
  • Insert extension at beginning of PATH statement
    Since some applications can only evaluate a certain number of characters of the PATH expression, this option allows to insert the new path at the beginning. If the option is not activated, the path is appended to the end.
  • Insert the PATH instruction before/after the line in the specified batch file which matches this "wild card" string
    If a new PATH statement is inserted in the specified batch file, the line before or after which the PATH statement is inserted can be specified here..
  • Name of application to trigger message box
    Title bar of the dialog box, which informs the user if necessary.
  • Use 32-Bit mode on x64 computer
    If the script is executed on a 64-bit operating system, the counterpart for 32-bit applications SysWOW64 can be used automatically when referring to the SYSTEM32 directory.


Example:

Appends the string c:\batch to the existing PATH statement in the starter.cmd in the Windows directory. If no PATH statement exists in starter.cmd, it is appended at the end.


Corresponds to DSM eScript command:

  • AppendPathExt


See also: