Results 1 to 2 of 2

Thread: How to know is file opened by other user(On local and on network)

  1. #1
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to know is file opened by other user(On local and on network)

    Hi all,
    I want to know is file opened by the other user.File may be in local disk or
    on network(like microsoft network or samba shares). My program will be working on linux and windows.How can i do this?
    Thanks in advance
    Ramazan

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to know is file opened by other user(On local and on network)

    In general you can't. There are some specific situations when this is possible - for instance when you use mandatory locking for files and try to open a locked file again - they this operation will fail and you'll know someone else has the lock. But you can forget it with remote file systems - it simply won't work.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.