>Nigel,
>
>I get around this by requiring a minimum install of IE4.01 SP1 or later - updates all kinds of useful system DLLs as well as installing WSH. You can include it on your install CD (just get free permission from MS) and even do the install silently.
>
You needn't install IE4, there's a freely-redistributable WSH install downloadable from the MS Web site referenced in my signature. SHell.Application requires IE4.01; you need to install the WSH 2.0 IAC, since it is not a part of IE4, and some of the more sueful features in WSH did not become a part until 2.0
>Cheers,
>
>Andrew
>
>>Works great on my PC with 98 on it. But scripting host is not on other PCs here. This is going to be used in a commercial financial package so has to run on anything.
>>
>>Thanks anyway,
>>
>>>Nigel,
>>>
>>>
>>>local loShell
>>>loShell = createobject('wscript.shell')
>>>* 0 = minimised window for the command, .t. = wait for a return value
>>>lnResult = loShell.Run(m.lcCommandLine, 0, .t.)
>>>
>>>
>>>Cheers,
>>>
>>>Andrew
>>>
>>>>I need to call an old 16bit exe file so I'm using ShellExecute. The only problem is that I also need to wait for completion of this third-party executable before my VFP app can continue processing.
>>>>
>>>>Any ideas?
>>>>
>>>>TIA,