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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create/delete directories?

Status
Not open for further replies.

jvff

Programmer
Joined
Apr 1, 2001
Messages
64
Location
BR
How can I use C++ Builder 5 to create directories, delete directorys and delete files? Thanks for any responses,
Jvff (Janito V. F. F.).
 
Greetinx!

Use CreateDir(dir) and RemoveDir(dir) to create and romove directory consequently. If you need to remove non-empty directory, you need to delete all files inside it then delete this directory. Use DeleteFile(file) function to delete any file from disk.
 

Use the Windows API function SHFileOperation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top