setvar (sv)
Description
Creates a new variable or modifies an existing variable.
Syntax
setvar <name> <path>
name
: The name of the variable. If the variable already exists, then the AppScan® Source command line interface (CLI) updates the path. If the variable does not exist, the CLI creates the variable with value of the named path.path
: An existing path for the variable. If the path does not exist, the variable is not created.
Examples
- To create the AppScan®
Source variable
Myvar
with the path C:\Myapps:AllApplications>> SetVar Myvar C:\Myapp AllApplications>> Created new variable ‘%Myvar%'
- To create an AppScan®
Source
variable named
SRC_ROOT
based on the value of theSRC_ROOT
system environment variable:# login login localhost admin # create the variable SRC_ROOT with the value # of the environment variable SRC_ROOT setvar SRC_ROOT ${SRC_ROOT}