Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

.EXE over Network

  • 16-02-2012 10:55am
    #1
    Closed Accounts Posts: 482 ✭✭


    I have an application that when its on the local computer it will open only once.
    If I move that application to a shared folder on a server it can be opened from multiple machines.How can I limit the application to only running in one instance?


Comments

  • Registered Users, Registered Users 2 Posts: 3,588 ✭✭✭swampgas


    Jim_Kiy wrote: »
    I have an application that when its on the local computer it will open only once.
    If I move that application to a shared folder on a server it can be opened from multiple machines.How can I limit the application to only running in one instance?

    There's no easy way to do this - generally such restrictions are baked into the application itself.

    You could wrap the app in a batch file which checks for a lock file when it starts, and refuses to start if the lock file is present. If the lockfile is missing, it creates it and starts the app.

    However this is fragile - anyone can run the app instead of the batch file, and if the app crashes the lockfile is left behind and has to be manually removed.

    my $.02


  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭Zab


    Is this supposed to defeat people actively trying to circumvent it? Do the other PCs have write access to the shared drive?


  • Closed Accounts Posts: 3,362 ✭✭✭rolion


    move application on to a dedicated folder and share that folder with maximum users equal with ... 1 !
    That will give access to only 1 'simultaneous' user, at one time !

    PS:
    in practice,i will setup to 2,one user can be system account,services,administrator and so on ! try it with 1 then with 2 if you get errors !


  • Closed Accounts Posts: 482 ✭✭Jim_Kiy


    Its already in a folder sounds like a good simple way to go.
    Basically different users are viewing data and they can add notes and save it but if multiple users are adding notes they could overwrite each other..so I dont see a way around that only using it as orignally envisaged with one user.
    Thanks for all the suggestions..


Advertisement