>I'm getting an OLE error if I use Windows Script Host. This only occurs if the path to the exe to be run has a space in it. Does anybody know of any reason.
>
>The code is basically like this:-
>
>
lcFileName=GetProgToRun()
>loShell=CreateObject("wscript.shell")
>lnResult=loShell.Run(lcFileName, 1, .T.)
>
>This works perfectly well if there is no space in the file name. The exe file is definitely there as this is validated before running.
>
>TIA,
Nigel,
I think it may be that you have to add quotes. (i.e. lcFileName = CHR(34) + lcfilename + CHR(34)). It's a WAG 'cause I haven't tried it.:-)
George
Ubi caritas et amor, deus ibi est