Jens said...
quote:
If there are multiple errors while running this UDF the returned error code will be incorrect as you are adding all error codes.

--------------------
Jens

This was the intended behavior. As the Do loop enumerates the persistent drive mappings and successfully changes all registry entries the final error code will be zero. If there is one (or more) errors writing to the registry (which is highly unlikely) the error code will be greater than 0 as stated in the documentation. A -1 error code indicates that no match was found.

[ 23. January 2003, 15:38: Message edited by: Chris S. ]