"Sony Kalkan" <so********@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
Hi,
I want to unlock the drive programmatically ? is there an api
function
related to it. For instance, when i run chkdsk with /F parameter, i
get "drive in use" error . I want to unlock drive programmatically
and
execute chkdsk
That function is built into chkdsk, with the limitation that the system and
pagefile drives cannot be exclusively locked. There's not any way to force
Windows to close those files, at least not in desktop editions of Windows.
>
Thank you in advance,
Sony.