Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

Creating, Deleting, and Maintaining Files

  • 2021-01-07
Feedback

In this article

The following topics describe how to create, delete, and maintain files.

In this section

TopicDescription
Naming Files, Paths, and Namespaces
Rules, conventions, and limitations of names for files and directories, including naming conventions, short file names vs. long file names, fully qualified paths vs. relative paths, maximum path length limitation, 8.3 file names, and namespaces.
Creating and Opening Files
Considerations for creating or opening a file by using theCreateFile function.
Moving and Replacing Files
Considerations for moving and replacing files by using the CopyFileEx, CreateFile, Replacefile, and MoveFileEx functions.
Closing and Deleting Files
To use operating system resources efficiently, an application should close files when they are no longer needed by using theCloseHandle function. If a file is open when an application terminates, the system closes it automatically.
Defragmenting Files
Defragmentation is the process of moving portions of files around on a disk to defragment files, that is, the process of moving file clusters on a disk to make them contiguous.

Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo