Microsoft KB Archive/246429

= Running Win32 Programs Through INTERIX =

Article ID: 246429

Article Last Modified on 10/30/2006

-

APPLIES TO


 * 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



SUMMARY
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.



MORE INFORMATION
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:

http://www.interix.com/

Keywords: kbinfo KB246429

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.