A aynes Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-11 #1 请问如何创建一个目录。<br>如:D:/AA<br>再请问如何判断我要创建的目录已经存在。
N NATASHA Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-11 #2 if DirectoryExists(Dir) then .....
N NATASHA Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-11 #5 uses FileCtrl;<br><br>procedure CreateDir(DirName: String);<br>begin<br> if not DirectoryExists(DirName) then<br> CreateDirectory(DirName, nil);<br>end;
uses FileCtrl;<br><br>procedure CreateDir(DirName: String);<br>begin<br> if not DirectoryExists(DirName) then<br> CreateDirectory(DirName, nil);<br>end;