Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using variables in DOS
Message
From
10/09/2007 20:15:15
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Environment versions
Visual FoxPro:
FoxPro Dos
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01251953
Message ID:
01253589
Views:
25
Is there any particular reason why you want to use DOS environment variables? Is it so that you can pass values between programs, or to provide some way to have persistent data? (DOS environment variables go away once the particular instance of COMMAND.COM or CMD.EXE exits)
If it's something to do with keeping a settings file you can easily edit in NOTEPAD or any text editor, you could just have a text file for storing these values. For example the contents might look like:

FEE=value
FIE=another value
FOE=yet another
FUM=still yet another value

You then just need to write a two functions -- one to read the contents, and another to update the contents.
Previous
Reply
Map
View

Click here to load this message in the networking platform