Function 0Dh Reset Drive

mov ah, 0Dh ;Reset Drive

int 21h

Reset Drive (Function 0Dh) flushes all file buffers. Any write operations that are buffered by MS-DOS are performed, and all waiting data is written to the appropriate drive.

Parameters

This function has no parameters.

Return Value

This function has no return value.

Comments

Reset Drive is normally used by CTRL+C interrupt handlers.

This function does not update directory entries; programs must close changed files to update their directory entries.

See Also

Function 10h Close File with FCB
Function 3Eh Close File with Handle