Microsoft KB Archive/49921

= PRB: SYSTEM Function Ignores SET string=string Command =

Article ID: 49921

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 4.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN PowerStation 1.0 Standard Edition
 * Microsoft Fortran PowerStation 1.0a for MS-DOS
 * Microsoft FORTRAN PowerStation 32
 * Microsoft FORTRAN PowerStation 32
 * Microsoft FORTRAN Compiler 4.1
 * Microsoft FORTRAN Compiler 5.0
 * Microsoft FORTRAN Compiler 5.1

-



This article was previously published under Q49921



SYMPTOMS
An attempt to issue the &quot;SET string=string&quot; command with the SYSTEM function in the FORTRAN run-time library fails to change the environment.



RESOLUTION
This behavior is expected. The SYSTEM command cannot modify the system environment.



MORE INFORMATION
The following code example demonstrates this situation. The environment does not change.

Sample Code
C Compile options needed: None

INTERFACE TO FUNCTION SYSTEM[C] (STRING) INTEGER*2 SYSTEM CHARACTER*1 STRING[REFERENCE] END

INTEGER*2 SYSTEM I = SYSTEM('SET CL=/FPi /Lr'C)     END

Additional query words: 1.00 4.00 4.10 5.00 5.10

Keywords: kblangfortran KB49921

-

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

© Microsoft Corporation. All rights reserved.