nutpath

convert Windows-style path names to NuTCRACKER Platform-style path names 

Tk Built-In Commands


SYNOPSIS

nutpath "path"

nutpath [pwd]

nutpath "path"


DESCRIPTION

The nutpath command converts a Windows-style path name with forward slashes to a NuTCRACKER Platform-style path name (for example, with the drive letter specified as /D=/ rather than D:/).

The buffer that nutpath points to should be at least as large as the buffer that the specified path name points to. Buffers should be allocated with PATH_MAX+1 characters. By default, the output is the present working directory followed by the specified path. For example, if the present working directory is E:/TCL/UNIX, the command line:

nutpath xyz

would produce the following output:

/E=/TCL/UNIX/xyz 

RETURN VALUES

If successful, nutpath returns TCL_OK. On failure, it returns TCL_ERROR and displays an error message.


PORTABILITY

Windows Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


PTC MKS Toolkit 10.3 Documentation Build 39.