Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/246429

From BetaArchive Wiki
Knowledge Base

Running Win32 Programs Through INTERIX

Article ID: 246429

Article Last Modified on 10/30/2006


  • Microsoft Interix 2.2 Standard Edition
  • Microsoft Interix 2.2 Standard Edition
  • Microsoft Interix 2.2 Standard Edition
  • Microsoft Interix 2.2 Standard Edition

This article was previously published under Q246429


The INTERIX POSIX subsystem can run Win32 programs. Many programs look for system information in the environment. Win32 programs will not "understand" pathnames in the POSIX format. If your shell scripts launch Win32 programs that look for information in the environment, you will have to make special allowance for those programs.

For example, suppose you have a Win32 compiler interface named Compile.exe that expects the environment variable LIB to contain the name of the directory that contains the library files. In the original Win32 shell script, compile was just invoked by typing:

compile $*

In the INTERIX version, you must convert the value of the LIB environment variable from a POSIX-style pathname to a Win32-style pathname before you can run the Compile.exe program. After running the command, you should reset the environment variable if you will then be calling INTERIX programs that examine its contents.


To convert the pathnames between formats, INTERIX provides the posixpath2nt and the ntpath2posix utilities.

For a complete discussion of running Win32 programs under INTERIX, see the TechNote "Running Win32 Programs".

For additional information, see:

Keywords: kbinfo KB246429