SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,727
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)

    Force a File to Delete (Windows)

    Hello... is there any way at all to force Windows to delete a file. It's convinced the file is in use (which I know for a fact is not the case).

    I've tried deleting it in safe mode and I've tried de-fragging then deleting. Nothing worked yet.

    Any suggestions??

  2. #2
    Night Elf silver trophybronze trophy Varelse's Avatar
    Join Date
    Mar 2005
    Location
    eu
    Posts
    5,967
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    FreelanceDaddy - freelancer's personal advisor
    █ Guide and advice for freelancers starting their career
    █ Over 1000 projects posted on freelance markets every day
    █ One-stop resource for online freelancing

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2005
    Posts
    516
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Wadge! F4nat1c's Avatar
    Join Date
    Oct 2005
    Location
    South Wales, UK
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    start -> run -> cmd.

    del /f yourfile

    it ignores read only permissions etc, and just force-deletes it. worked for me in the past.
    OMFG SitePoint ROXORZ TEH BIG ONE111!
    Wish you were invisible?

  5. #5
    Night Elf silver trophybronze trophy Varelse's Avatar
    Join Date
    Mar 2005
    Location
    eu
    Posts
    5,967
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    The advantage of Unlocker is that it removes the locks and makes it possible not only to delete the file (or folder), but also rename or move it - which is a great feature
    It's available from right-click menu which makes using it very comfortable.
    And it's free too
    FreelanceDaddy - freelancer's personal advisor
    █ Guide and advice for freelancers starting their career
    █ Over 1000 projects posted on freelance markets every day
    █ One-stop resource for online freelancing

  6. #6
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,576
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    If windows says the file is in use, its in use. Try and figure out what process is locking the file then kill it.

  7. #7
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,727
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wwb_99
    If windows says the file is in use, its in use. Try and figure out what process is locking the file then kill it.
    The process is killed... Like I said, I know that for a fact.

    I'm going to try that "Unlocker" thing.

  8. #8
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,727
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    Hey it worked!!... Thanks for the suggestions, all.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •