J jobsxy Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-02 #1 1.如何得到系统的默认路径,如:c:/windows;c:/winnt;c:/win98<br>2.我想做这么个功能,判断系统目录里是否有XXX.ini文件,如果没有,就创建它,<br>如果有就读它,请大侠给段代码。<br><br>谢谢!<br>
1.如何得到系统的默认路径,如:c:/windows;c:/winnt;c:/win98<br>2.我想做这么个功能,判断系统目录里是否有XXX.ini文件,如果没有,就创建它,<br>如果有就读它,请大侠给段代码。<br><br>谢谢!<br>
Y YB_unique Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-02 #2 1 GetWindowsDirectory(windir,128);<br> showmessage('windows目录是:'+windir);<br>2 GetMem(MySysPath,255);<br> GetSystemDirectory(MySysPath,255);<br> If FileExists(MySysPath +'XXX.ini') then
1 GetWindowsDirectory(windir,128);<br> showmessage('windows目录是:'+windir);<br>2 GetMem(MySysPath,255);<br> GetSystemDirectory(MySysPath,255);<br> If FileExists(MySysPath +'XXX.ini') then