Previous Topic: GetEngineDataNext Topic: GetPlatform


GetMappedPath

GetMappedPath

Returns the new File path mapped to the new machine. The command also has the ability to take paths which have different delimiters than the common \\ character.

First parameter:

The old File path (string value)

Second parameter:

The path delimiter (string value)

Usage:
GetMappedPath( <old File path>, [<path delimiter>] );
Example:
newPath = GetMappedPath("c:\\old path\\file.txt");
/* newPath will equal the new file path.*/		
oldPath = "c:_old path_file.txt";
newPath = GetMappedPath( oldPath, "_" );
/* newPath will equal the new file path with the delimiter*/
/* for example newPath could equal e:_new path_file.txt*/