The path with spaces has to be encloused in the double quotes.
lcpath=["c:\java setup\javainstall.exe"]
lo.run(lcpath, .F.,1)
>am running simple following commands which returns ole error could not find specified file.
>
>lo=createobject('wscript.shell')
>lo.run('c:\java setup\javainstall.exe',0,1) && it returns abv error
>
>i figured out its bcoz of space in folder name (i.e. Java setup). i tried following but to no avail.
>
>lcpath='c:\java setup\javainstall.exe'
>
>lo.run((lcpath),0,1) && same error
>lo.run('&lcpath',0,1) && same error
>lo.run(eval(lcpath),0,1) && same error
>lo.run('&lcpath.',0,1) && same error
>
>if i remove space in the folder name everything works as expected .
>any ideas on how to fix this.
>Thanks
--sb--