F ForDelphi Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-17 #1 如我运行d:/myprogram/a.exe,返回它所在位置 d:/myprogram/ 用类函数或API均可,越简单越好。
M mlzhou Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-17 #2 ExtractFilePath(Application.ExeName);
L ljh_ty Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-17 #3 FileStr := ExtractFileName(ParamStr(0));
S sallypo Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-17 #4 ExtractFilePath(Application.ExeName); //返回当前EXE所在目录 Application.ExeName; //返回当前EXE所在目录+文件名