Manipulating files in use by others


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Manipulating files in use by others

  1. #1
    Bernie Guest

    Manipulating files in use by others


    Hi
    Is it possible to delete or rename a file being used by others?
    (Their problem, raised by this, is a completely different issue)

    Bernie

  2. #2
    Monte Hansen Guest

    Re: Manipulating files in use by others

    Not until the file has been closed by other users. If opened as a network
    resource, you can use NetFileGetInfo and NetFileClose.

    =+=+=+=+=+=+=+=+=+=+=+=+=+=+
    Monte Hansen
    http://killervb.com
    Always coding in the dead of night.
    =+=+=+=+=+=+=+=+=+=+=+=+=+=+


    "Bernie" <magnus.bernroth@rejlers.se> wrote in message
    news:3cc0107c@10.1.10.29...
    >
    > Hi
    > Is it possible to delete or rename a file being used by others?
    > (Their problem, raised by this, is a completely different issue)
    >
    > Bernie




  3. #3
    dnagel Guest

    Re: Manipulating files in use by others

    I had great luck renaming EXE's that were opened across the network
    by (sometines) hundreds of users... But I guess an EXE dos not have
    locking applied to it in the same way as docs...

    D.

    "Monte Hansen" <monte@nospam.com> wrote in message news:3cc0315c$1@10.1.10.29...
    | Not until the file has been closed by other users. If opened as a network
    | resource, you can use NetFileGetInfo and NetFileClose.
    |
    | =+=+=+=+=+=+=+=+=+=+=+=+=+=+
    | Monte Hansen
    | http://killervb.com
    | Always coding in the dead of night.
    | =+=+=+=+=+=+=+=+=+=+=+=+=+=+
    |
    |
    | "Bernie" <magnus.bernroth@rejlers.se> wrote in message
    | news:3cc0107c@10.1.10.29...
    | >
    | > Hi
    | > Is it possible to delete or rename a file being used by others?
    | > (Their problem, raised by this, is a completely different issue)
    | >
    | > Bernie
    |
    |



  4. #4
    Bernie Guest

    Re: Manipulating files in use by others


    "Bernie" <magnus.bernroth@rejlers.se> wrote:
    >
    >Hi
    >Is it possible to delete or rename a file being used by others?
    >(Their problem, raised by this, is a completely different issue)
    >
    >Bernie


    The reason why I'm asking is the problem with locked access MDB-files. Some
    years ago I wrote a small piece of code using VB for this. I guess it was
    VB ver 3 and Win95. Renaming the file across the network was possible, even
    if some users where using it (OK, they usually got a complete system crasch,
    but for a SA it was worth it).

    In the mean time I'll try those NET api's...

    Bernie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center