PTC MKS Toolkit Knowledge Base

Section:IO
Product:MKS Toolkit (TKPDev/TKEDev)
Version:
OS:All
Keywords:porting, pathname, convert, /D=/
Category:Porting/Knowledge Base


How do I convert path names in system() or exec()?


MKS Toolkit porting products pass path names in NuTCRACKER format, in which Windows drive letters are represented by /=/. For example, the path a:/setup.exe in NuTCRACKER format is /a=/setup.exe. You cannot pass such a path to a native Win32 program without first converting it to Windows format. Use one of the _NutPathToXXX() functions (_NutPathToNutc(), _NutPathToWin32(), _NutPathToWin32FS()) to convert it. Refer to the Windows Concepts section of the UNIX to Windows Porting Guide.