Solved

Win 2K - 'Error deleting file or folder' even when it's not in use

Posted on 2004-08-07
5
1,668 Views
Last Modified: 2010-04-13
Can anyone tell me a way to prevent the following:

Infuriatingly often, A file or folder I have been woking on/in cannot be deleted, apparently because the OS thinks that it is still being used by some process, even after the app(s) that might be referencing it have ben closed.  As in:

  Error deleting file or folder
  Cannot delete New Folder: There has been a sharing violation.
  The source or destination file may be in use.

or

  Error moving file or folder
  Cannor remove folder New Folder: There has been a sharing violation.
  The source or destination file may be in use.

I don't really expect there is a way to prevent the OS from doing this, but is there some way I can manually "unhook" the file or folder in question so that it can be moved or deleted (like a registry key or something)?  Right now the only solution is log off and log on again, which is ridiculous...

0
Comment
Question by:lpzCoville
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
munkyxtc earned 500 total points
ID: 11744968
If you are running an app out of the folder, I would say chances are the service or process is not being shut down on close -- this is the biggest reason this will occur and also explain your logging off/on problem.

Could I have some more specifics in regards to the folder you are attempting to delete? or are you asking a general question?
0
 
LVL 4

Author Comment

by:lpzCoville
ID: 11744988
It's a general question.  However, it's never something where I've been running an app out of the folder; it's where I've been using a file in the folder, for example viewing a pdf file with Acrobat Reader or an image file with ACDSee. Those are just two examplesoff the top off my head, it happens so often that I haven't noticed a pattern as to which aps will lock the folder and which won't (except Windows Media Player, which actually seems to behave itself very nicely.)
0
 
LVL 4

Author Comment

by:lpzCoville
ID: 11744997
Correction - I thought about it some more, and I think it might happen sometimes when I've been running an app, like a game, out of a folder, but it's infrequent that I need to move a folder containing an app that I really haven't paid that much attention.
0
 
LVL 4

Author Comment

by:lpzCoville
ID: 11745016
OK!! I checked it in Task Manager and there was indeed a residual process running from Acrobat Reader(those bastards!) that, once shut down, allowed me to delete the offending folders(s). I don't know for sure if this is going to work in all instances, but I have a hunch you're right and that some other programs are pulling the same shennanigans.  Thanks!
0
 
LVL 4

Expert Comment

by:munkyxtc
ID: 11745043
Thanks for the points --

Upon reading the rest of what you updated -- We had a problem with acrobat 6 creating the same issue for us -- rolling back to an older version solved the problem for us -- Just a thought.

Anything else, just ask.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question