Previous Topic

Next Topic

Book Contents

Book Index

Custom Scripts

The custom scripts feature is available with MOVEit Automation Enterprise.

A custom script can call any function defined by VBScript. It can also instantiate and invoke COM objects, such as Scripting.FileSystemObject and command-line applications using the MIRunCommand function.

After you save a custom script in MOVEit Automation, the script can be used in a process. Custom scripts are stored encrypted in the MOVEit Automation configuration file.

To...

Do this:

Add (create) a new custom script

  1. Click SCRIPTS > Add Script. Provide a name and optional description.
  2. Select a script template. In the Script Source box, make changes as needed. Save.

For more information, see Add New Script.

Import a .vbs script

  1. Click SCRIPTS > Add Script. In the Add New Script dialog box, click Import Script File. Locate the script and click Open.
  2. In the Script Source box, make changes as needed. Save.

The original (external) script is not affected by changes you make to the script in Web Admin.

NOTE: If you have a custom script open in Web Admin, and you import an additional script, the source code of the new script overwrites the source code in the Script Source box. You do not receive a warning message.

Export a custom script

  1. Add a new script or click an existing custom script name.
  2. On the script properties page, click Export Script File.

The script is exported as a .vbs file using the friendly name as the filename. Example: myscript.vbs

Edit a custom script

  1. Click SCRIPTS and click the script name. The properties page for the script opens.
  2. Click Edit. Make changes and Save.

NOTE: If you change the friendly name of a script and save, that same script is saved with the new friendly name. To use an existing script as the starting point for a new script, see Use an existing custom script to create a new script in the last row of this table.

Edit a custom script in an external editor

  1. Click SCRIPTS and click the script name. On the script properties page, click Export Script File.
  2. Using the external editor, make changes in the exported file and save.
  3. In Web Admin, click the script name and click Edit. Click Import Script File and select the file. The imported file overwrites the Script Source. Save.

Use an existing custom script to create a new script

Use this procedure to retain an existing script in MOVEit Automation and create a new script based on it.

  1. Add a custom script, save it, and then export it.
  2. Add a new custom script and give it a Friendly Name.
  3. Import the script that you exported (in Step 1). Make changes as needed, and save.

See also: