Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-08-07
5
Medium Priority
?
1,670 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

704 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