Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting all environment variables
Message
From
18/03/2005 16:32:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00996910
Message ID:
00997478
Views:
13
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform