If i understand it correctly, he want to prevent somebody from logging in when certain conditions are met. Thus, during the login, he issues a logoff which then triggers the logoff.bat. Then it doesn't matter whether the user tries to close the batch file as he's being logged off anyway [Wink]
_________________________
There are two types of vessels, submarines and targets.