Email this Page Log Support Call Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

Command Line

The Command Line action is used to run batch files before or after publishing.

File names used in the command line action dialog box can represent an executable file, or any file type where you have associated the extension with an application (such as associating .txt with Notepad). Executable files can be written without the extension, so you could use either AfterPublish.bat or AfterPublish.

Command Line

To Create a Command Line Action:

  1. Open the publishing profile and select the Actions tab.
  2. Select the Command Line action.
  3. Enter a name for the action in the Description field.
  4. Enter the path and batch file name in the command field. The path is the location where Author-it will find and run the batch file.
    • Type the path (do not use relative paths unless you want the batch file to be run at a location within the Data folder).

      -or-

    • Choose [...] and browse to the batch file.

      -or-

    • Use the <SYS_PUBLISH_FOLDER> variable.
  5. Add arguments if they are required by the batch file. Note the arguments must be referenced in the batch file code.
  6. Choose OK to save the action. The action is added to the Before Publishing list. To move the action to the After Publish list select the action and choose the Move Down arrow.
  7. Save the changes to the profile.

See Also

Actions

Copy File

Move File

Delete File

Zip File

Using Variables in the Command Line Action

Adding a Variable to the Command Line Path

Using Author-it Variables in an After Publish Batch File

File Transfer

XSL Transformations

WebDAV

Aspect

Website Manager

Top of Page Email this Page Log Support Call Send Feedback Print