|
I think I may have solved the multiple login problem with users (on NT4 systems) I look after a school network of anywhere up to 250 users using the system at any point in time, real headache when I disable a user, and they 'borrow' someone elses account. I had a friend write me a program that runs in the background and writes to the users home share (G:) to a hidden file called "semaphore.dat". The program deletes this file every 5 mins and recreates it, and upon logoff it deletes it totally. Theory is, that if a 2nd user logs in, I want kixstart to check the file time and if less than 5 mins old then log the 2nd back user out. and if older than 6 mins (1 min margin of error) , then delete and allow the login - this way if a computer crashes and restarts there is only a 5 min wait before the user can log in again (since the semaphore file will still exist).
Now I'm hoping that someone can help, and I manage to pull this off. I figured uing 'getfiletime' would be the way, but I'm stumped on how to check the age of it. Can anyone help with this? (I'm still a kixstart newbie)
Also - if it does work - is it worth posting the program somewhere for others to use it?
Any help appreciated.
|