Stdpath
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.
Usage
stdpath(path [,systemtype])
or
Server.stdpath(path)
Returns
String: The path converted to the format used by the specified systemtype.
Example
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified August 31, 2024: Signed-off-by: tracyragan <[email protected]> (20379ca)