Solved

File can't be renamed or delete

Posted on 2011-09-09
9
1,782 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

830 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