CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    140

    Post [solved] overwrite\delete\rename\anything busy file, how?

    hi, i need to overwrite a busy file (file that is used at the curent moment), i saw programs to delete such files so i think it is possible, would appreciate any help
    Last edited by Owyn; May 16th, 2009 at 02:31 PM.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: overwrite\delete\rename\anything busy file, how?

    I would sincerely hope that you can't defeat the operating system's file locks. Why would you want to do that?

  3. #3
    Join Date
    Nov 2006
    Posts
    1,611

    Re: overwrite\delete\rename\anything busy file, how?

    Obviously, an application that opens a file without sharing isn't written to tolerate the file's sudden disappearance or alteration. It may well crash the application.

    In order to manage this, you'd have to operate on the disk from "under the hood" - outside the operating system (perhaps through SCSI commands directly on the controller), unless the OS has an open hole, which I would expect would be plugged.

    If you did work at the controller level, you should expect errors that would crash the directory/partition of that drive - bugs you probably don't want to have to consider (the kind of thing that if you have to ask, you're not equipped to do it).
    If my post was interesting or helpful, perhaps you would consider clicking the 'rate this post' to let me know (middle icon of the group in the upper right of the post).

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: overwrite\delete\rename\anything busy file, how?

    Quote Originally Posted by Owyn View Post
    hi, i need to overwrite a busy file (file that is used at the curent moment)
    There are reasons why the OS does noe allow you to do this. I leave it to you to tell us those reasons.

    Regards,

    Paul McKenzie

  5. #5
    Join Date
    May 2009
    Posts
    140

    Re: overwrite\delete\rename\anything busy file, how?

    figured all out already ^^ *solved

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured