Cannot delete a file

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I am unable to remove an unneeded profile from a user that
has been removed.

I get a message saying:

Cannot delete file board[1]. ;cannot find file specified


I have done a thorough regsitry scan fot this file and the
Profile that contains it, this appears under a Temp
Internet folder that cannot be removed because of this one
file.

Does anyone have any advice or hot-to ideas?

Thanks much
 
Chris,

I post a lot of messages here, in the past, about this problem and until now
I did not fin any solution. Here, is my discovers about it:

We have two Windows 2000 Servers with SP3. One of them are presenting a
well-known message, when we try to delete a folder: "Error Deleting File or
Folder. Cannot delete "folder": There has been a sharing violation. The
source or destination file may be in use."

I made a research through Newsgroups around the Internet and I found that
explorer.exe is locking that folder. People outhere tell us to restart
Windows and delete the folder, after logon. It works but it is very boring
to restart the computer every time we have a locked file or folder.

As an workaround to prevent a restart, I found a great free utility called
WhoLockMe (http://www.dr-hoiby.com/WhoLockMe/) for Win2K. WhoLockMe is a
little extension for your Microsoft Explorer. It permeets you to list all
the process locking your selected file. So I started to use it to unlock any
folder handled by explorer.exe, just killing its process.

Another way to delete the locked folder is setup Windows Explorer to open
the folder's windows in separate proccess (Windows Explorer > Tools > Folder
Options > View Tab > Advanced Configuration > Start the folder's windows in
.....). So, we close all Windows Explorer windows, open a new one and delete
the locked folder.

In both ways, we did not need to restart the computer.

I think this problem start after we apply Win 2K SP3, but the other Win 2K
Server did not presenting this problem. Indeed, I am suspecting of our
Microsoft Office 2000 Professional (brazilian portuguese) and of our Norton
Antivirus 2001. I am suspecting too of some files like SHELL32.DLL and
EXPLORER.EXE releases.

I do not know if that problem is the same described in Microsoft's Knowledge
Base Article 323045
(http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323045) or the
older NT4.0 Article 165387
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q165387).

Another common error appears too: the Windows Explorer starts to show
incorrect icons in the left-window folder's tree, after some file and folder
manipulation, specially after file and folder deleting in the right side.
So, when we click the Up button on the Windows Explorer's toolbar a message
with an error. We click OK button and continue to browser the hard disk but
every opened folder show the same error message. The incorrect icon that
replace the yellow folder icon is one of the icons inside shell32.dll: an
white page with many blues stripes (simulating text) and a red "A" in the
bottom-right side of this white page. It is a common Windows icon but it is
replacing the yellow folders icons.

I think all these problems only were solved with Win 2K SP4. A few days a
go, I upgraded our trouble Windows 2000 Server with SP4 and the problems
still here!



"Chris" <[email protected]> escreveu na mensagem
I am unable to remove an unneeded profile from a user that
has been removed.

I get a message saying:

Cannot delete file board[1]. ;cannot find file specified


I have done a thorough regsitry scan fot this file and the
Profile that contains it, this appears under a Temp
Internet folder that cannot be removed because of this one
file.

Does anyone have any advice or hot-to ideas?

Thanks much
 
Another free utility that is helpful in this regard is "Process
Explorer "(procexpnt.exe) from http:\\www.sysinternals.com. If there
is a file or folder you cannot delete, it is probably because Explorer
has an open "handle" on it. Open Process Explorer, use the Search
function to find your file or folder name, go to the bottom pane where
the handles are listed, right-click on a handle and choose "Close
Handle". When all handles to a file or folder are closed, it can be
deleted. This is the only way I have found to get around this problem
without crashing/restarting Explorer or rebooting (or logging out &
back in).

I am not sure what causes Explorer to have all these open handles to
files and folders I am no longer using. Seems like bad code in the OS
somewhere that is not closing handles.

Eric Thirolle
(e-mail address removed)

Toni Fontenele said:
Chris,

I post a lot of messages here, in the past, about this problem and until now
I did not fin any solution. Here, is my discovers about it:

We have two Windows 2000 Servers with SP3. One of them are presenting a
well-known message, when we try to delete a folder: "Error Deleting File or
Folder. Cannot delete "folder": There has been a sharing violation. The
source or destination file may be in use."

I made a research through Newsgroups around the Internet and I found that
explorer.exe is locking that folder. People outhere tell us to restart
Windows and delete the folder, after logon. It works but it is very boring
to restart the computer every time we have a locked file or folder.

As an workaround to prevent a restart, I found a great free utility called
WhoLockMe (http://www.dr-hoiby.com/WhoLockMe/) for Win2K. WhoLockMe is a
little extension for your Microsoft Explorer. It permeets you to list all
the process locking your selected file. So I started to use it to unlock any
folder handled by explorer.exe, just killing its process.

Another way to delete the locked folder is setup Windows Explorer to open
the folder's windows in separate proccess (Windows Explorer > Tools > Folder
Options > View Tab > Advanced Configuration > Start the folder's windows in
....). So, we close all Windows Explorer windows, open a new one and delete
the locked folder.

In both ways, we did not need to restart the computer.

I think this problem start after we apply Win 2K SP3, but the other Win 2K
Server did not presenting this problem. Indeed, I am suspecting of our
Microsoft Office 2000 Professional (brazilian portuguese) and of our Norton
Antivirus 2001. I am suspecting too of some files like SHELL32.DLL and
EXPLORER.EXE releases.

I do not know if that problem is the same described in Microsoft's Knowledge
Base Article 323045
(http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323045) or the
older NT4.0 Article 165387
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q165387).

Another common error appears too: the Windows Explorer starts to show
incorrect icons in the left-window folder's tree, after some file and folder
manipulation, specially after file and folder deleting in the right side.
So, when we click the Up button on the Windows Explorer's toolbar a message
with an error. We click OK button and continue to browser the hard disk but
every opened folder show the same error message. The incorrect icon that
replace the yellow folder icon is one of the icons inside shell32.dll: an
white page with many blues stripes (simulating text) and a red "A" in the
bottom-right side of this white page. It is a common Windows icon but it is
replacing the yellow folders icons.

I think all these problems only were solved with Win 2K SP4. A few days a
go, I upgraded our trouble Windows 2000 Server with SP4 and the problems
still here!



"Chris" <[email protected]> escreveu na mensagem
I am unable to remove an unneeded profile from a user that
has been removed.

I get a message saying:

Cannot delete file board[1]. ;cannot find file specified


I have done a thorough regsitry scan fot this file and the
Profile that contains it, this appears under a Temp
Internet folder that cannot be removed because of this one
file.

Does anyone have any advice or hot-to ideas?

Thanks much
 
Back
Top