Products Applications Downloads Features Wiki forum Store

opcp Command

From Wiki077
Jump to: navigation, search


opcp [-a] [-v] [-q] operator1 [operator2...] destination

This will copy the operators specified. If the destination ends with a /, the node(s) will be copied into the destination component with their original names. If the destination does not end with a / then the destination is the path name of the new node. Specifiying a destination of . means copy the nodes into the current component using their original names. If the destination component does not exist the operation will fail. If a node of the same name as the target name already exists, the operation will fail, unless the -a option is used.

Options

-v return the name of the created node.
-a cause nodes to be automatically renamed if a node that matches their target name already exists.
-q suppress (quiet) all errors.

Examples

opcp geo* .
opcp /obj/geo1/* /obj/geo2/
opcp geo1 fred

To get the name of the new node:

set NEWNAME = `execute("opcp -v $NAME .")`

See Also

opcopy, opname, oppaste, oprm

Personal tools