# 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:

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\

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:

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:

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:

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:

Arguments:

Argument

Description

.

No arguments

## Mapped Drives¶

### MapDrives¶

Description:

Maps mapped drives from network settings on Windows.

Syntax: