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 



Was this page helpful? Yes No Submitting... Thank you

Comments