procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(ExtractFilePath(ParamStr(0)));          //获取程序所在目录
  ShowMessage(ExtractFilePath(Application.ExeName));  //获取程序所在目录
  ShowMessage(GetCurrentDir + '\');                   //获取当前目录
end;

posted on 2007-11-30 22:03  万一  阅读(6293)  评论(3编辑  收藏  举报