Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

procedure TForm1.Button1Click(Sender: TObject); var arq : TextFile; texto : string; begin texto:= '@cd\ '+#10+ 'cd Arquivos de programas\PostgreSQL\9.

0\bin '+#10+ 'pg_dump -Fc -U postgres postgres > c:\backup'+FormatDateTime('_dd-mm-yyyy_',Dat e)+FormatDateTime('hh-nn-ss',now)+'.sql'; AssignFile(arq, 'c:\Gerar_Backup'+'.bat' ); Rewrite(arq); Writeln(arq, texto); CloseFile(arq); WinExec('c:\Gerar_Backup.bat',sw_show); end;

You might also like