Solved

File can't be renamed or delete

Posted on 2011-09-09
9
1,767 Views
Last Modified: 2012-06-27
We had a user with an open Excel file and the server (windows 2008 R2) where the share was located had a powerloss.    Now we are unable to delete or rename the file.  Receive and error "the action can't be completed because the file is open in another program".    We change permissions OK, Used the ATTRIB command to remove readonly...   Not has seem to work.
0
Comment
Question by:brhenning
9 Comments
 
LVL 11

Expert Comment

by:jimbecher
Comment Utility
 As a rule rebooting the server will clear the locks but if the power went out and the server shut down it should have the same effect. Regardless have you tried rebooting the server to clear the locks?
0
 

Author Comment

by:brhenning
Comment Utility
The power when out on the server (off for about 12 hours).    So server came up cleanly and that is when we discovered the error.    We haven't re-booted again (we'd have to do this after hours) but I'm assuming that technically the server has already been re-booted
0
 
LVL 11

Expert Comment

by:jimbecher
Comment Utility
  I would have to agree with you completely. It was just a though. There is a program out there called WhoLockMe that will show you who (if anyone) has the file open but this one from Sysinternals might be better in that it will show you processes that have the file open:

http://technet.microsoft.com/en-us/sysinternals/bb896655

0
 

Author Comment

by:brhenning
Comment Utility
Thanks I'll give that a try.     I did check the session open in the share manager and made sure the user in question wasn't connected.     I also took ownership of the file tried to delete or rename the file as the administrator with no success.    I'm thinking that the file may have some corruption and this is just an generic error but I'll give the the tool a try.
0
Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

 
LVL 4

Assisted Solution

by:ZeevM333
ZeevM333 earned 100 total points
Comment Utility
Have you tried deleting the folder containing the file?
Clean the %temp% directory?

another option:
·    Click the Start orb
·    Enter gpedit.msc in the search box and hit Enter.
·    Expand User Configuration - Administrative Templates - Windows Components.
·    Click on Windows Explorer.
·    Right-click the entry "Turn off the caching of thumbnails in hidden thumbs.db files" and choose Edit.
·    Enable
0
 
LVL 11

Expert Comment

by:jimbecher
Comment Utility
  I kind of agree with you.That error message about the file being open by another process might be bogus and a result of the file being corrupt. The utility by sysinternals is a little much. It will scan all files on the server. Best to run it from a command prompt and follow it with > open.txt then load open.txt in to notepad or something. It will help to find it. Another alternative is a proggram called unlocker. It will let up select that one file and test it. Cute little program.
0
 
LVL 6

Expert Comment

by:K_Wilke
Comment Utility
You can also try the program unlocker at:
http://www.filehippo.com/download_unlocker/
Thanks,
Kelly W.
0
 
LVL 7

Accepted Solution

by:
Martin81 earned 400 total points
Comment Utility
If unlocker doesn't work I'd try running chkdsk /r , then try deleting the file again.
0
 

Author Closing Comment

by:brhenning
Comment Utility
I was trying to avoid chkdsk because it was quite a large volume but nothing else worked so that's where I ended up
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

728 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

14 Experts available now in Live!

Get 1:1 Help Now