Can you give us some more details? Is this on a W2k, 9x system? What do you have for current code? If memory serves me correct this has been discussed many times.. A search as well as the UDF Library may also help you get closer to what you need.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's