procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption:=ExtractFilePath(Application.ExeName); end;