A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/windows/desktop/FileIO/creating-and-deleting-directories below:

Creating and Deleting Directories - Win32 apps

Creating and Deleting Directories

In this article

An application can programmatically create and delete directories.

To create a new directory, use the CreateDirectory, CreateDirectoryEx, or CreateDirectoryTransacted function. A directory is given the name specified when it is created. The conventions for naming a directory follow the conventions for naming a file. For a description of these conventions, see Naming a File.

To delete an existing directory, use the RemoveDirectory or RemoveDirectoryTransacted function. Before removing a directory, you must ensure that the directory is empty and that you have the delete access privilege for the directory. To do the latter, call the GetSecurityInfo function.

Additional resources

In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4