Microsoft KB Archive/246429: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 47: Line 47:
== SUMMARY ==
== SUMMARY ==


The INTERIX POSIX subsystem can run Win32 programs. Many programs look for system information in the environment. Win32 programs will not &quot;understand&quot; 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.<br />
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.<br />
<br />
<br />
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:<br />
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:<br />
Line 62: Line 62:
To convert the pathnames between formats, INTERIX provides the posixpath2nt and the ntpath2posix utilities.<br />
To convert the pathnames between formats, INTERIX provides the posixpath2nt and the ntpath2posix utilities.<br />
<br />
<br />
For a complete discussion of running Win32 programs under INTERIX, see the TechNote &quot;Running Win32 Programs&quot;.<br />
For a complete discussion of running Win32 programs under INTERIX, see the TechNote "Running Win32 Programs".<br />
<br />
<br />
For additional information, see:<br />
For additional information, see:<br />

Latest revision as of 13:50, 21 July 2020

Knowledge Base


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