Recursive Directory Scan
A C++ function that recursively walks a directory tree with FindFirstFile/FindNextFile, printing every file it finds.
A C++ function that recursively walks a directory tree with FindFirstFile/FindNextFile, printing every file it finds.
A C console program that copies a file two ways — character at a time with fscanf, then in 512-byte buffered chunks after seeking back to the start.
A C program that sets a file's attributes to archive plus read-only using SetFileAttributes.
A one-line C program that renames a file on the desktop using MoveFile.
A C program that prints every set file attribute for a given file using GetFileAttributesEx.
A five-line C program that creates a directory with CreateDirectory, waits, and removes it again with RemoveDirectory.
A one-line file deletion using DeleteFile, with the CRT unlink alternative commented alongside.