>>The code example is using two different instances of the Shell object, doing the waits with one, and the SendKeys with the other. If you want to follow this example to the T, you need to create an other instance of the shell object, and call it 'WScript'. But I don't think you need to- you should be able to just make all the calls on the same object...
>
>Thanks for your input. However, I am sorry, but I don't understand how to do this. I tried to replace WScript with WshShell, but Visual FoxPro was not too happy.
>
>Hilmar.
Just add:
WScript = CREATEOBJECT("WScript.Shell")
to the top of your code to use two objects.
Do you mean that you tried to make all the calls on one object and VFP gave an error? What error?
Erik Moore
Clientelligence