Solved

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

Posted on 2004-08-07
5
1,662 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
  • 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now