>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)