>Good morning Sergey,
>Probably more info than you want...
>
>This is a program run from a VFP6 program about every 55 seconds that searches specific directories (Mainframe DataSets) for existing files and transports them to a BBS via FTP commands. A tracking report is generated and no form or displays are needed.
>
>I wanted to make this little jewel ask for file origins instead of the default for versatility, if I hit a key during it's first two seconds the interactive mode would ask for Dataset Origin, File Destination, and ifTest.
>
>I know that I could add lparameter and exe switch but this is needed so very rarely that I just thought I'd wait a couple of seconds ...
>
>The code works fine except when in debug mode (Win2K)!
>
>I can debug on my home PC Win98 no problem...
See if you can use WIN API#12718 WaitForInputIdle.
--sb--