Previous Topic: varNext Topic: Message


MapPath

MapPath

Maps one path to another for the duration of a script. This path-mapping applies to all Apply operations following the MapPath keyword in the current script. This keyword has the effect of replacing all paths that match <old path> with <new path> in the following operations ApplyDirectory, ApplyFile, and ApplyMappedValue.

First parameter:

The old path (string value)

Second parameter:

The new path (string value)

Usage:
MapPath(<old path>, <new path>);
Example:
MapPath("c:\\winword\\data", "c:\\winword\\Application Data");