Path and Drive Mapping - Command Arguments¶
Path Mapping¶
CheckPathMapping¶
Description:
Performs path mapping on the given path. Uses the path mapping rules defined in the Repository Options.
Syntax:
deadlinecommand -CheckPathMapping <Path> [<Force Separator>] |
Arguments:
Argument |
Description |
---|---|
<Path> |
The path to map |
<Force Separator> |
All path separators in the replacement path will be replaced with this before the original path is mapped (optional) |
Example:
If there is no Path Mapping rule for “C:temp”, the result will be identical to the argument:
C:\>deadlinecommand -CheckPathMapping "c:\temp\test\image.png"
c:\temp\test\image.png
If a Path Mapping rule exists, it will be applied:
C:\>deadlinecommand -GetPathMappings
c:\temp\ --> Z:\assets\
C:\>deadlinecommand -CheckPathMapping "c:\temp\test\image.png"
Z:\assets\test\image.png
CheckPathMappingForMultiplePaths¶
Description:
Performs path mapping on the given paths. Uses the path mapping rules defined in the Repository Options.
Syntax:
deadlinecommand -CheckPathMappingForMultiplePaths <Path(s)> [ forceseparator: <Force Separator> ] |
Arguments:
Argument |
Description |
---|---|
<Path(s)> |
The path to map, or a list of paths to map each separated by a space |
forceseparator:<Force Separator> |
All path separators in the replacement path will be replaced with this before the original path is mapped (optional). |
Note
The forceseparator:
keyword is required to distinguish the separator string from the paths arguments.
Example:
If there is no Path Mapping rule for “C:temp”, the result will be identical to the argument:
C:\>deadlinecommand -CheckPathMappingForMultiplePaths "c:\temp\test\image.png" "c:\temp\textures\texture.tiff"
Z:\assets\test\image.png
Z:\assets\textures\texture.tiff
If the source paths do not include spaces, no quotes are required. The separator is added only to the replacement path, not the unaffected portion of the source path:
C:\>deadlinecommand -CheckPathMappingForMultiplePaths c:\temp\test\image.png c:\temp\textures\texture.tiff forceseparator:/
Z:/assets/test\image.png
Z:/assets/textures\texture.tiff
CheckPathMappingInFile¶
Description:
Performs path mapping on the contents of the given file. Uses the path mapping rules defined in the Repository Options.
Syntax:
deadlinecommand -CheckPathMappingInFile <Input File> <Output File> [<Force Separator>] |
Arguments:
Argument |
Description |
---|---|
<Input File> |
The original file name |
<Output File> |
The new file name where the mapped contents will be stored |
<Force Separator> |
All path separators in the replacement path will be replaced with this before the original path is mapped (optional) |
CheckPathMappingInFileAndReplaceSeparator¶
Description:
Performs path mapping on the contents of the given file, and updates all path separators in any paths that are mapped. Uses the path mapping rules defined in the Repository Options.
Syntax:
deadlinecommand -CheckPathMappingInFileAndReplaceSeparator <Input File> <Output File> <Old Separator> <New Separator> [<Force Separator>] |
Arguments:
Argument |
Description |
---|---|
<Input File> |
The original file name |
<Output File> |
The new file name where the mapped contents will be stored |
<Old Separator> |
The path separator to replace |
<New Separator> |
The new path separator |
<Force Separator> |
All path separators in the replacement path will be replaced with this before the original path is mapped (optional) |
GetPathMappings¶
Description:
Returns a list of all path mappings that can will be applied in the current context. Uses the path mapping rules defined in the Repository Options.
Syntax:
deadlinecommand -GetPathMappings |
Arguments:
Argument |
Description |
---|---|
. |
No arguments |