<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Times New Roman'; COLOR: #00002b; FONT-SIZE: 12pt">
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>I’m having trouble with using a variable in a string path.</DIV>
<DIV> </DIV>
<DIV>When I use the variable FW_Path := ‘C:\Program Files (x86)’ with two single
quotes, the following works well and ShowMessage(ProgramName); displayed the
full path .</DIV>
<DIV> </DIV>
<DIV>When I reference FW_Path to a variable X I get an error returned “Can Not
run....” The variable X is returned as C:\Program Files (x86) without
quotes. </DIV>
<DIV> </DIV>
<DIV>I attempted Quote String and got the following ‘C:\Program Files (x86) with
one single quote.</DIV>
<DIV> </DIV>
<DIV>Both cases return the same error - and in both cases
ShowMessage(ProgramName); displayed none of the path after C:\Program Files
(x86).</DIV>
<DIV> </DIV>
<DIV>Help would be appreciated.</DIV>
<DIV> </DIV>
<DIV>Bob</DIV>
<DIV> </DIV>
<DIV> FW_Path := QuoteStr(X); </DIV>
<DIV> DXF :=
openDialog1.FileName; </DIV>
<DIV> ProgramName :=FW_Path+'\FWTools2.4.7\bin\ogr2ogr "-f" "PostgreSQL"
PG:"host=192........ user=postgres dbname=E5R password=........" "'+ DXF +'"
-nln Import_Process';</DIV>
<DIV> </DIV>
<DIV>
ShowMessage(ProgramName);</DIV></DIV></DIV></BODY></HTML>