Hi Jaime,
You may be able to resolve this issue by determining the process that has the open
handle and closing that process, before deleting the file. There are a variety of
diagnostic tools that you can use to determine what process has the open handle. For
a tool with a GUI, see Sysinternals "Process Explorer". And for a command-line tool
see Sysinternals "Handle" or Microsoft's "Open Handles".
- Process Explorer
Copyright © 1998-2002 Mark Russinovich
Find out what files, registry keys and other objects processes have open, which DLLs
they have loaded, and more. This uniquely powerful utility will even show you who
owns each process.
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml
- Handle
Copyright © 1997-2001 Mark Russinovich
This handy command-line utility will show you what files are open by which processes,
and much more.
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
- For information on Microsoft's "Open Handles" tool (oh.exe), see the following
Microsoft Knowledge Base Article, section titled: "Cause 2: The File Is Being Used",
and link to KB172710:
KB320081 - You Cannot Delete a File or a Folder
http://support.microsoft.com/?scid=320081
NOTES:
- The OH Tool discussed in KB172710 can be found on the Windows 2000 Professional
Resource Kit companion CD. Or you can download it as "Windows 2000 > Technical
Resources > Resource Kits: Free Tool Downloads". For more information, see the
following Microsoft Knowledge Base Article:
KB274305 - Free Windows 2000 Resource Kit Tools for Administrative Tasks
http://support.microsoft.com/?scid=274305
- The gflags.exe program discussed in KB172710 is one of the Support Tools included
on the Windows 2000 CD (see Windows 2000 Help topic "To install Windows 2000 Support
Tools").
--
Carrie Garth, Microsoft MVP for Windows 2000
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- c x g
: "Jaime" <Laraja AT hotmail DOT com>
: Wrote in message : Sent: Monday, July 21, 2003 02:52 PM
: When I try to delete a file I get a sharing violation I'm
: login as administrator have closed all Apps. and the
: computer/hard disk is not shared any ideas thanks.