Solved

what uses my file?

Posted on 2004-10-29
125 Views
Last Modified: 2010-04-14
Ola,

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?
0
Question by:DaFou
    8 Comments
     
    LVL 10

    Assisted Solution

    by:NetworkArchitek
    0
     
    LVL 10

    Assisted Solution

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

    Assisted Solution

    by:anil_u
    Try Who Lock Me on
    http://www.dr-hoiby.com/tools.php

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

    Assisted Solution

    by:ADSaunders
    Hi DaFou,
    Sysinternals provide several admin tools, the one you want here is handle http://www.sysinternals.com/ntw2k/freeware/handle.shtml

    Regards .. Alan
    0
     
    LVL 9

    Expert Comment

    by:imnajam
    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
    0
     
    LVL 2

    Author Comment

    by:DaFou
    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?
    0
     
    LVL 10

    Assisted Solution

    by:Longbow
    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"
    0
     
    LVL 6

    Accepted Solution

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

    otherwise...

    you have to use.. Handle or Process Explorer from Sysinternals.com

    Also...

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

    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 (http://www.enterprise.efax.com), 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