Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running app with spaces in path with wscript
Message
De
18/12/2018 07:32:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01664594
Message ID:
01664595
Vues:
49
>Hi there,
>
>I am reading a path from an ini file, add a file Name and try to execute it with the wscript.shell-run command.
>But when the Path contains strings the call does not work like
>
>wsh = createobject("wscript.shell")
>cDoUpdatefile = "c:\program files\galileo\download\update_galileo_1_19_Start.exe"
>nRet = wsh.Run((cDoUpdatefile),1,.T.)
>
>What can I do to make it work? Running the same as awindows-command works fine.
>
>Best regards
>
>Thomas
Try
wsh = createobject("wscript.shell")
cDoUpdatefile = '"c:\program files\galileo\download\update_galileo_1_19_Start.exe"' && added outer '
nRet = wsh.Run((cDoUpdatefile),1,.T.)
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform