>>>Is there a way to keep the DOS window from appearing wher exicuting the run command?
>>Steven,
>>Use shellexecute instead.
>>Cetin
>ie:
>
>
declare long ShellExecute in "shell32.dll" ;
> long hwnd, string lpszOp, ;
> string lpszFile, string lpszParams, ;
> string lpszDir, long nShowCmd
>
>ShellExecute(0,'','c:\fpd26\foxprox.exe','mytest.prg','c:\fpd26',0)
>
VFP calling FoxDOS which in turn runs a prg silent.
>Cetin
Steven,
But beware this creates an independent task which means you'd get control back before it finishes (like nowait in run).
ie : Other prog is doing this :
start = datetime()
do while datetime()-start < 60*120 && 120 mins
* do nothing
enddo
You call it with shellexecute and continue to work on your app immediately. It runs as a separate task for 2 hrs.
Cetin