Mel,
>Do you know if there is a way to Maximize the program that I am calling so the user want click on my VFP app until the program running has completed what it needs to?
The pnShowWindow parameter controls the launched window size. You can use one of these constants:
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
#define SW_FORCEMINIMIZE 11
#define SW_MAX 11
You can't prevent them from switching back to your app, but as long as you have a message on the screen saying you are waiting for AppY to finish they should understand what is going on.
>Also, can I safely assume that all computers have wscript.shell available?
It is not 100% it is in all the later version of the O/S and installs with some version of IE, but I don't recall which release. But you might want to wrap in in a try/catch or have an Error() method handle it.