How are you initiating the scanning program from within VFP? have you tried createprocess and waitforsingleobject apis? that will stop processing on your vfp app until the initiated process finishes...
>I have an instance twaincom.exe
>
>How can i check from vfp wether that instance is sill there under system process under task manager.
>
>because i run the scanning program which uses the twaincom.exe when i scan, it creates an instance of twaincom.exe and when the scanning job is completed fully then it automatically clears the instance twaincom.exe from process, at that moment i need to run another program, after the instance is cleared.
>
>Please can you tell me, how i can do this.
>
>Thank you very much in Advance.
.·*´¨)
.·`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"