Get a host path converted into a standard format.

Returns a host path converted to the standardized format using the optional systemtype parameter . If the systemtype is not specified then the system type is taken from the Endpoint currently on the stack. If no Endpoint is on the stack, an exception is thrown.

stdpath is also a method that can be called on a Endpoint object. In this case, the system type is taken from the Endpoint itself.


stdpath(path [,systemtype])




String: The path converted to the format used by the specified systemtype.


set res = stdpath('/tmp/file.txt', 'unix');

// res is /tmp/file.txt

set res = stdpath(@'C:\Temp\file.txt', 'windows');

// res is /Temp/file.txt

set res = stdpath('$2$DKA200:[FERDU01.TEST]file.txt', 'vms');

// res is /FERDU01/TEST/file.txt
Last modified June 15, 2020: Remove extra headers in DMScript (102cb1a)