ForceDirectories('D:\新文件夹');
或md('D:\新文件夹');
procedure TForm1.Button1Click(Sender: TObject);
begin
if not DirectoryExists('D:\bnabinge') then
begin
ForceDirectories('D:\bnabinge');
end
else
begin
Messagebox(Handle,'文件夹已存在?','警告', MB_ICONERROR);
abort;
end;
end;