>Hello,
>In my application I am running a .bat file with this command:
>
>Run C:\vfp\ka\Runtime\clearwork.bat
>
>
>Is there a way to specify this to run minimized so the black screen does not pop up when the .bat file is run?
>
>Thanks!
>
>MAC
Use ShellExecute instead.
declare long ShellExecute in "shell32.dll" ;
long hwnd, string lpszOp, ;
string lpszFile, string lpszParams, ;
string lpszDir, long nShowCmd
ShellExecute(0,'Open',;
'C:\vfp\ka\Runtime\clearwork.bat','','C:\vfp\ka\Runtime',0)
Cetin