Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

DepotFile - addFileToDepot


DepotFile - addFileToDepot

Description :

This command adds a file to the depot. Use NSH style paths for fileLocation (//servername/path/to/file).

Return type : java.lang.Integer

Command Input :

Variable Name

Variable Type

Description

groupName

String

Depot group in which you want to store the file.

fileLocation

String

NSH style path to the file.

name

String

Name of the file as it will appear in the depot.

description

String

Description of the file.

Example

The following example adds a file to the depot.

Script


DEPOT_GROUP=/myGroup

FILE_LOC=//servername/depotFiles/myCfgFile.txt

DEPOT_NAME="My configuration file"

DEPOT_DESCRIPTION="Description of the file"

DepotFile addFileToDepot $DEPOT_GROUP $FILE_LOC $DEPOT_NAME $DEPOT_DESCRIPTION



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.5