That's how I do it (using createprocess et al...) but he didn't ask for an alternative method so I only made recommendations on what to check to make sure his run command works...
>Why not use
Launch App and wait w/o RUN or DOS box FAQ #7774 instead?
>
>>MAke sure foxrun.pif is pointing to CMD.EXE
>>You should also make sure that cmd.exe in the users path when VFP is running...
>>
>>
>>>I have to launch a dos application from within my VFP program.
>>>I use the ! command
>>>
>>>
>>>!Mybatchfile.bat
>>>
>>>
>>>it worked fine till yesterday but today it launch the command window waiting for user prompt. But the stranger thing is that from another client it works fine.
>>>What could have happened ?
>>>I think it's something involved with the cmd.exe but i don't remember how to act with it
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"