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.
This function has no parameters.
This function has no return value.
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.
Function 10h Close File with FCB
Function 3Eh Close File with Handle