Why the *.db file can not be deleted? | | |
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. | | | | re: Why the *.db file can not be deleted?
YXQ wrote: Quote:
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 | | | | re: Why the *.db file can not be deleted?
On 27 aug, 04:33, YXQ <Y...@discussions.microsoft.comwrote: Quote:
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 | | | | re: Why the *.db file can not be deleted?
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. | | | | re: Why the *.db file can not be deleted?
YXQ wrote: Quote:
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 | | | | re: Why the *.db file can not be deleted?
The tip "Access to the path
"C:\Users\Steven\AppData\Local\Microsoft\Windows\E xplorer\thumbcache_sr.db"
is denied using the io.file.delete function.
I have gotton full permission, could you please try yourself?
thank you.
"Andrew Morton" wrote: Quote:
YXQ wrote: Quote:
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
>
>
>
| | | | re: Why the *.db file can not be deleted?
>YXQ wrote: Quote: Quote: Quote:
>>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?
>>
"Andrew Morton" wrote: Quote:
>Go on, you know you want to tell us what the actual error returned by
>io.file.delete is...
Quote:
YXQ wrote:
The tip "Access to the path
"C:\Users\Steven\AppData\Local\Microsoft\Windows\E xplorer\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/s.../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 | | | | re: Why the *.db file can not be deleted?
Thank you for your help.
"Andrew Morton" wrote: Quote: Quote: Quote:
YXQ wrote:
>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?
>
"Andrew Morton" wrote: Quote:
Go on, you know you want to tell us what the actual error returned by
io.file.delete is...
> Quote:
YXQ wrote:
The tip "Access to the path
"C:\Users\Steven\AppData\Local\Microsoft\Windows\E xplorer\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/s.../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
>
>
>
|  | Similar Visual Basic .NET bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,384 network members.
|