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

Limiting a program to only have one instance

  • 09-05-2007 2:43pm
    #1
    Registered Users, Registered Users 2 Posts: 2,587 ✭✭✭


    We have a program running that is set to a number of liscences and once this is reached it will lock out everyone else.

    So I'm looking some batch file or program that restricts any PC to only opening 1 instance of this program, If it happens to restrict all programs to only having one instance, so be it.


    Any recommendations?


Comments

  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,583 Mod ✭✭✭✭Capt'n Midnight


    I'd love to have something like that where you install the program on a shared folder and only one user is allowed connect at a time.

    Even if anyone knows about a terminal server setting to do that.

    You could have batch files - but they could be bypassed by going directly to the program.

    [php]
    if exist x:\lock.txt goto :inuse
    echo %date% %time% %username%>x:\lock.txt
    start /wait program.exe
    delete x:\lock.txt
    goto :done

    :inuse
    type x:\lock.txt
    :done
    [/php]


Advertisement