Giving them a warning message so that they have the opportunity to clean up the first two times should be enough (oh well they are users maybe like a gazillion warnings is better [Big Grin] ).
Just check the regvalue you created and display a messagebox when it is 1 or 2 and maybe a little warning about the logoff and why when it hits 3.

Maybe doing a getfilesize and warning them when the file is almost at it's limit could be done also before setting the regvalues and at the end a forced logoff ?

They will have no way to login so they will have to call IT support and they can clean up for the user. Sometimes it’s best to let them learn the hard way.

[ 10. September 2003, 12:03: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.