what uses my file?

Posted on 2004-10-29
Last Modified: 2010-04-14

When trying to delte a file I get this msg ( something like it ) "Cant delete file, file in use", even though I am SysAdmin.
How can I tell what process or who is using that file?
Question by:DaFou
    LVL 10

    Assisted Solution

    LVL 10

    Assisted Solution

    You can use the "net file" command.
    "net file id /close" to "close" the file.
    "net file /?" for help.
    LVL 8

    Assisted Solution

    Try Who Lock Me on

    works quite well and you can kill the process so that you can delete the file.
    LVL 10

    Assisted Solution

    Hi DaFou,
    Sysinternals provide several admin tools, the one you want here is handle

    Regards .. Alan
    LVL 9

    Expert Comment

    beside all the tools (that would work for you) you can boot into safe mode and delete the file depending on the file if it's not a critical system file
    LVL 2

    Author Comment

    thanks all for the response.

    Before i use any programs not readily installed i want to try
    the net file method.
    Longbow: How do i determine the file id?
    LVL 10

    Assisted Solution

    It will be given when you type "net file" on the server.
    It is the first column.

    Maybe you can filter the output with a pipe :
    net file | find /I "file.ext"
    LVL 6

    Accepted Solution

    net file will be helpful only if its opened over network...


    you have to use.. Handle or Process Explorer from


    Many times oddly... Ii have found that ... deleting from Command Prompt ... works....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

     Java Android Coding Bundle

    Whether you're an Apple user or Android addict, learning to code for the Android platform is an extremely valuable, in-demand skill. It all starts with Java, the language behind the apps and games that make Android the top platform it is today.

    Finding a job can be stressful - searches, resume tweaks, and networking events can be super boring. Luckily we're here to help you land your dream job!
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    913 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

    17 Experts available now in Live!

    Get 1:1 Help Now