Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS environment setting
Message
 
To
26/06/2001 07:23:58
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00523413
Message ID:
00523478
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
Jime,
If you are working under WinNT/Win2000 then settings are valid only within current DOS session.
You can also try WinAPI way:
Declare Long ExpandEnvironmentStrings in Win32API String, String, Long
src = "%TESTING%"
res = SPACE(256)
ln = ExpandEnvironmentStrings(src, @res, 256)
res = Left(res, ln)
?res
>When I test the GETENV(), I can only get some environments. And if I use SET TESTING=1 in DOS prompt, the run getenv("TESTING"), there's just no return. May I ask why?
Previous
Reply
Map
View

Click here to load this message in the networking platform