New free opensource tool to delete in-use files

Discussion in 'other software & services' started by Wayne - DiamondCS, Sep 11, 2003.

Thread Status:
Not open for further replies.
  1. Wayne - DiamondCS

    Wayne - DiamondCS Security Expert

    Joined:
    Jul 19, 2002
    Posts:
    1,533
    Location:
    Perth, Oz
    "How do i delete this file when it says that it's in use?" ... this is a good question and Ive seen it pop up a lot on forums recently, but strangely enough there don't seem to be any tools available to specifically do just that

    Usually if you close down all active programs the file should become free and then you'll be able to delete it, but this isn't always the case, especially when it comes to non-conventional programs such as system processes, service processes, trojans, and so on. Microsoft recommends just one method for deleting such files, and this article can be found here (Platform SDK - MoveFileEx).

    Anyway I've just put together a little tool based on the guidelines specified in that article, all effort has been made to ensure technical accuracy, and it supports Windows 95/98/ME/2K/XP/2003. Its free, easy to use, tiny (the exe is only 2560 bytes), and it's open source - feel free to use and modify the source code as you please.

    See here for more information, and the download (all 3 kilobytes of it) :)
     
  2. Bethrezen

    Bethrezen Registered Member

    Joined:
    Apr 16, 2002
    Posts:
    546
    hi

    good job i been lookin for a tool to get rid of files that are in use

    a good example would be index.dat just one question how do i use it o_O

    becaues theres no help file ?
     
  3. spy1

    spy1 Registered Member

    Joined:
    Dec 29, 2002
    Posts:
    3,139
    Location:
    Clover, SC
    Instructions were on the d/l page, Bethrezen (I think in the readme, too):

    "1. Run dellater.exe <filename>
    2. Reboot (whenever you like).
    That's all that's required. After rebooting and logging in you'll be able to see that the file you specified is no longer there."

    HTH Pete

    Wayne - I darn near missed this neat little app! Can we have it in BIG, BOLD LETTERS next time you come out with something this neat?
     
  4. Jooske

    Jooske Registered Member

    Joined:
    Feb 12, 2002
    Posts:
    9,713
    Location:
    Netherlands, EU near the sea
    [shadow=blue,left][glow=navy,10,300]New free opensource tool to delete in-use files
    [/glow][/shadow]


    Special SPY1-Size
     
  5. Jooske

    Jooske Registered Member

    Joined:
    Feb 12, 2002
    Posts:
    9,713
    Location:
    Netherlands, EU near the sea
    Check back often in the DCS forums at www.diamondcs.com.au/forum in General and Free tools areas where they're announced first.
    Generally.
     
  6. Antarctica

    Antarctica Registered Member

    Joined:
    Feb 25, 2003
    Posts:
    2,180
    Location:
    Canada
    Thanks so much Wayne for
    that nice tool. :)
     
  7. spy1

    spy1 Registered Member

    Joined:
    Dec 29, 2002
    Posts:
    3,139
    Location:
    Clover, SC
    lol@Jooske! That's more like it! :D Pete
     
  8. Bethrezen

    Bethrezen Registered Member

    Joined:
    Apr 16, 2002
    Posts:
    546
    Hi all

    I know what it says on the download page but what I want to know is how do you mark a file for deletion on restart coz there don't seem to be a way to mark files for deletion
     
  9. LowWaterMark

    LowWaterMark Administrator

    Joined:
    Aug 10, 2002
    Posts:
    18,278
    Location:
    New England
    Well, it isn't really a "mark for deletion", in that it's not a special file system based flag or anything like that which deletes the file. (On one OS I've used, there is actually a "marked for deletion" flag in the file system, if set, once the last open channel to a file closes, the file is then deleted.)

    This appears to be a special function within Windows used to handle such things by doing the operation very early during the next reboot of the system, at a point early enough that nothing should be accessing or locking the file. I'm sure Wayne could give more details as to the technology involved, but from the microsoft article, it looks like it should work almost all the time...

    Here's an image showing how I'd use the program if I needed to. Also, it shows one of the registry keys that gets set by the function being called just to give an idea of what it's doing...
     

    Attached Files:

  10. Vietnam Vet

    Vietnam Vet Registered Member

    Joined:
    Feb 9, 2002
    Posts:
    306
    Hi,

    Need a little guidance here. Let me start off by saying that I have never used MS-DOS in my life, so please keep that in mind.

    I haven't really had a need to date for a tool like this, but recommended it to someone over at the Lavasoft forums who is having an extremely hard time deleting a file off of their system. Apparently, they do not understand how to use DelLater, and since no one else has tried to explain it to them, I felt obligated. Problem with that is, after downloading the tool, I can't make it work.

    Using LowWaterMark's example, I finally got it to give me the file marked for deletion message, but upon rebooting, the file is still happily sitting there on my hard drive.

    Two questions:
    1 Does the DelLater.exe have to reside in the same folder as the file you are trying to delete? That is the only way I was able to get the file marked for deletion message.
    2 Any clue as to what I am doing wrong, since the file does not delete, even after getting this message?

    On 98SE here. Remember, no experience here, so don't assume any detail is too obvious. Thanks in advance.

    By the way, sitting here in Virginia waiting for that hurricane to come through here in the very near future, so if I don't respond to any replies right away, please understand. Thanks again.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.