Unlock the drive

  • Thread starter Thread starter Sony Kalkan
  • Start date Start date
S

Sony Kalkan

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

Thank you in advance,


Sony.
 
Sony Kalkan said:
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.
 
Back
Top