Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting all environment variables
Message
De
18/03/2005 16:32:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00996910
Message ID:
00997478
Vues:
14
>RUN /N? SET where ? is any allowed number (N1, N2, N3...) doesn't work in Windows 2003 Server enterprise.
>
>But you have to make a BAT file first as:
>
>
>STRTOFILE("SET > SETS.TXT","SETS.BAT")
>RUN /N2 "SETS.BAT"
>INKEY(3,"H")
>ERASE "SETS.BAT"
>
>
>This is weird part. You need a wait state between RUN and ERASE otherwise no
>SETS.TXT is generated

Not weird at all. With the /N parameter for the RUN command, VFP continues running in parallel, so it may erase the batch file before it has a chance to run.

An alternative to the wait state is to use RUN without the /N parameter.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform