Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running app with spaces in path with wscript
Message
From
18/12/2018 07:32:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01664594
Message ID:
01664595
Views:
48
>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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform