Lavolpe,
Thanks but it 'does' work when hardcoded, so that is not the issue (i dont think). Also yes, I have an error capture for existing directories, which I am ignoring for the tme being. Thanks

Koolsid, still gives error with the 'trim'... Am goign to try edgemeals suggestion.

thanks for your time.