Rewritten patch to use setfileflag getfileflag Is this closer to what you want? Dan