[DUG] Shell Execute wrap lines

Bob Pawley rjpawley at shaw.ca
Thu Feb 9 08:06:34 NZDT 2012


Hi

Using BDS 2006 on Win 7.

I have a shell execute trial command  -
ProgramName := '"'+s+'\Quantum GIS Wroclaw\bin\ogr2ogr" "-f"  "PostgreSQL"; PG:"host='+DBHost+' user=postgres dbname='+DBName+' password='+Pass+'" "'+ DXFfile +'" -nln '+'Import_PID'+' "-overwrite" ';

that, if inserted in Delphi on one line, has no errors and works well.

If I make two lines, as above, I get errors. I’ve attempted double quotes to wrap the command. I’ve also tried adding + with and without quotes and adding + ProgramName to second line – all with no joy.

The final command will be considerably longer than the trial command.

How can I organize this so it will be on multiple lines and therefor easier to work with?

My searches found only how to create multiple lines for ShowMessage strings.

Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20120208/50d44f85/attachment.html 


More information about the Delphi mailing list