Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Space in folder name
Message
 
 
To
08/04/2005 18:26:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01002904
Message ID:
01002907
Views:
27
This message has been marked as the solution to the initial question of the thread.
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform