I iie Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-05 #2 ;MyPath := ExtractFilePath(Application.EXEName);
W wjiachun Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-05 #4 MyPath := ExtractFileDir(Application.EXEName); 也可以
L Leaze Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-05 #5 在程序中可用 Mypath:=GetCurrentDir;
Y yufandi Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-05 #6 MyPath := ExtractFileDir(Application.EXEName); MyPath := ExtractFilePath(Application.EXEName); 以程序为c:/Windows/system/123.exe为例ExtractFileDir(applicaition.exename)将返回 "C:/windows/system";extractFilePath将返回"c:/windows/system/" 多一个"/"
MyPath := ExtractFileDir(Application.EXEName); MyPath := ExtractFilePath(Application.EXEName); 以程序为c:/Windows/system/123.exe为例ExtractFileDir(applicaition.exename)将返回 "C:/windows/system";extractFilePath将返回"c:/windows/system/" 多一个"/"
F fifa2000 Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-05 #8 ExtractFilePath(Paramstr(0)) 这个够简单吧 加分吧
G gxlnew Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-06 #9 谢谢各位!谢谢! 另, GetCurrentDir也许不妥,若SaveDialog等,也许就变了