Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using variables in DOS
Message
De
10/09/2007 20:15:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Versions des environnements
Visual FoxPro:
FoxPro Dos
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01251953
Message ID:
01253589
Vues:
24
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform