Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
demote crashed domain controller (server 2000) 3 997
Remote Access to a Windows 2000 Computer 2 498
Windows 8 in a W2K Domain 7 581
Disk size support for operating systems 12 531
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…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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