Solved

File can't be renamed or delete

Posted on 2011-09-09
9
1,779 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
ID: 36513307
 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
ID: 36513340
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
ID: 36513384
  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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:brhenning
ID: 36513486
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
 
LVL 4

Assisted Solution

by:ZeevM333
ZeevM333 earned 100 total points
ID: 36513570
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
ID: 36513602
  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
ID: 36513622
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
ID: 36513811
If unlocker doesn't work I'd try running chkdsk /r , then try deleting the file again.
0
 

Author Closing Comment

by:brhenning
ID: 36531229
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

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

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

773 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