hoby, can you translate:
1) if $rootpath !~ /\\$/;
2) $rootpath .= "\\"

1)if $rootpath does not end with a "\"
2) add an "\" to the end of the string

1) if $rootpath !~ #/$#; or $rootpath !~ /\/$/;
2) $rootpath .= "/"
_________________________
Home page: http://www.kixhelp.com/hb/