Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

folder

Status
Not open for further replies.

Regany

Programmer
Aug 27, 2004
72
LV
how to create folder with delphi?
 
There are at least two functions that you could use.

CreateDir and ForceDirectories function do what you want. The Delphi 7 Help says
function CreateDir(const Dir: string): Boolean;

Description

CreateDir creates a new directory. The return value is true if a new directory was successfully created, or false if an error occurred.
and
function ForceDirectories(Dir: string): Boolean;

Description

ForceDirectories creates a new directory as specified in Dir, which must be a fully-qualified path name. If the directories given in the path do not yet exist, ForceDirectories attempts to create them.

ForceDirectories returns true if it successfully creates all necessary directories, false if it could not create a needed directory.


Andrew
Hampshire, UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top