PRB: Changing Environment Variable from Within FoxPro FailsLast reviewed: June 27, 1995Article ID: Q90033 |
The information in this article applies to:
SYMPTOMSWhen the RUN command is used to change an MS-DOS environment variable, the variable does not change to the new value.
CAUSEWhen FoxPro starts, it creates a copy of the MS-DOS environment variables. These values cannot be changed in FoxPro because FoxPro loads a new copy of COMMAND.COM in order to process values specified in the RUN command. Any MS-DOS environment variables created or changed in this COMMAND.COM copy are valid only while that shell is running. Once the application specified in the RUN command completes its operations, the new variables or changes disappear.
RESOLUTIONUpdate or create MS-DOS environment variables outside FoxPro.
|
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a GETENV()
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |