procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(ExtractFilePath(ParamStr(0)));          //获取程序所在目录
  ShowMessage(ExtractFilePath(Application.ExeName));  //获取程序所在目录
  ShowMessage(GetCurrentDir + '\');                   //获取当前目录
end;
posted on 2010-01-17 21:39  oKmAn.Org  阅读(196)  评论(0编辑  收藏  举报