Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Space in folder name
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01002904
Message ID:
01002907
Vues:
21
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform