Path Problem with PgDump.BackupToFile
Posted: Sun 22 Jan 2012 17:11
Hello,
when using the following code:
ShowMessage delivers
What adds the path of the .exe to the path of the backup file.
How can i get rid of it?
With best regards
Heinz Willi Dahmen
when using the following code:
Code: Select all
s:='"'+txtBackupPath.Text + '\ + strBackupFile + '.sql"';
ShowMessage(s);
PgDump.BackupToFile(s);
PgDump.BackupToFile results in an error"C:\RAD Studio\Projekte\backupTest\ctswws_Standard_2012-01-22_17-52.backup.sql"
saying basically:the path or filename is wrong.Datei "C:\RAD Studio\Projekte\CTS_WWS_2012\Win32\Debug\"C:\RAD Studio\Projekte\backupTest\ctswws_Standard_2012-01-22_17-52.backup.sql"" kann nicht erstellt werden. Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.
What adds the path of the .exe to the path of the backup file.
How can i get rid of it?
With best regards
Heinz Willi Dahmen