>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"'
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.
OffThere is no place like [::1]