Why the *.db file can not be deleted?

  • Thread starter Thread starter YXQ
  • Start date Start date
Y

YXQ

I want to delete the *.db (thumbs cache) files located on "C:\Users\User
Name\AppData\Local\Microsoft\Windows\Explorer", i have taken owner the
permission, but unable to delete them using io.file.delete function, but the
CCleaner software can do it, why? thank you.
 
YXQ said:
I want to delete the *.db (thumbs cache) files located on
"C:\Users\User Name\AppData\Local\Microsoft\Windows\Explorer", i have
taken owner the permission, but unable to delete them using
io.file.delete function, but the CCleaner software can do it, why?

What error does it give you? Perhaps something about being unable to delete
a file with the system attribute set?

Andrew
 
I want to delete the *.db (thumbs cache) files located on "C:\Users\User
Name\AppData\Local\Microsoft\Windows\Explorer", i have taken owner the
permission, but unable to delete them using io.file.delete function, but the
CCleaner software can do it, why? thank you.

When that folder use tumbnails the file is in use. so switch to list
or details and than you can delete that file
 
I have tried lots of method, taken ower the permission, attrib -a -s -h -r,
list showing..., but it can not be deleted yet, note: the OS is Windows
Vista, could you please try to delete them yourselft? thank you.
 
YXQ said:
I have tried lots of method, taken ower the permission, attrib -a -s
-h -r, list showing..., but it can not be deleted yet, note: the OS
is Windows Vista, could you please try to delete them yourselft?

Go on, you know you want to tell us what the actual error returned by
io.file.delete is...

Andrew
 
The tip "Access to the path
"C:\Users\Steven\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
is denied using the io.file.delete function.
I have gotton full permission, could you please try yourself?
thank you.
 
YXQ wrote:
The tip "Access to the path
"C:\Users\Steven\AppData\Local\Microsoft\Windows\Explorer\thumbcache_sr.db"
is denied using the io.file.delete function.
I have gotton full permission, could you please try yourself?

I haven't got Vista to try it with... could you try using the VB Kill
command? Also, you can make sure that it is using the user identity you
think it is by using FileMon.

FileMon: http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx

You could use ProcessExplorer to find if some process has a handle to that
file, which would also prevent deleting it (now I think about it, that seems
the best thing to check for first).

Andrew
 
Thank you for your help.

Andrew Morton said:
I haven't got Vista to try it with... could you try using the VB Kill
command? Also, you can make sure that it is using the user identity you
think it is by using FileMon.

FileMon: http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx

You could use ProcessExplorer to find if some process has a handle to that
file, which would also prevent deleting it (now I think about it, that seems
the best thing to check for first).

Andrew
 
Back
Top