tkpath

perform various operations (mostly available in other commands) in a cygpath compatible way. 

Command


SYNOPSIS

tkpath -dmuwtfaopsCADHOPSW [-F ID] [name]


DESCRIPTION

tkpath tkpath is simply a wrapper around other PTC MKS Toolkit tools that already perform the actions available in the tool "cygpath". It is not usually the PTC MKS Toolkit way to clone non-POSIX tools, but this tool seems to be used in a lot of Open Source configuration and so when porting source that already has a cygwin port it is much easier to use tkpath as a direct substibute for cygpath than to rework the scripts to call several different tools. Please do not write new code to use this tool, dosname, realpath, sysinf, and windir. More information about the intent of the tool can be found here: http://www.cygwin.com/cygwin-ug-net/using-utils.html#cygpath

Options

realpath wrappers.
-a 

convert relative to absolute path - similar to realpath

-m 

prints in PTC MKS Toolkit c:/ or //server/share format - identical to realpath -m.

-u 

prints in NuTCRACKER Platform /c=/ or //server/share format - identical to realpath -n.

-w 

prints in Win32 c:\ or \\server\share format - identical to realpath -n.

dosname wrappers.
-d 

identical to -w -s. print the short path for a file in windows format - simlar to dosname -s.

-l 

print the long path for a file - identical to dosname -l.

-p 

Not currently implemented.

-s 

print the short path for a file - identical to dosname -s.

windir wrappers.
-A 

windir commands operate on the COMMON_* versions.

-D 

pipes the output of windir COMMON_DESKTOPDIRECTORY or windir DESKTOPDIRECTORY and massages the output based on the output (dosname and realpath) options.

-C 

Not currently implemented due PTC MKS Toolkit outputing wide characters and this would require narrow output.

-H 

pipes the output of windir PROFILES and massages the output based on the output (dosname and realpath) options.

-O 

pipes the output of windir PERSONAL or windir COMMON_DOCUMENTS and massages the output based on the output (dosname and realpath) options.

-P 

pipes the output of windir PROGRAMS or windir COMMON_PROGRAMS and massages the output based on the output (dosname and realpath) options.

-S 

pipes the output of windir SYSTEM and massages the output based on the output (dosname and realpath) options.

-W 

pipes the output of windir and massages the output based on the output (dosname and realpath) options.

-F 

maps the ID given to a symblic folder name and pipes the output of windir 'symblic folder name' and massages the output based on the output (dosname and realpath) options.


EXAMPLES

See examples for dosname, realpath, sysinf, and windir.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

1 

Failure due to any of the following:

— unknown command line option
— failure in realpath()


PORTABILITY

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


BUGS

The PTC MKS Toolkit implementation shares no source code with the cygwin version and so may operate slightly differently under some circumstances. Where possible such differences will be repaired.


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 Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
cat, dosname, realpath, sysinf, windir

Functions:
_NutPathToNuTC(), _NutPathToWin32(), _NutPathToWin32FS()


PTC MKS Toolkit 10.3 Documentation Build 39.