Even though you mentioned trimming, I know that I've needed to do a trim on the variable when I use it for a path or a name. That 256 byte name with 10 characters and 246 blanks, especially enclosed in quotes, would be seen as a 'real' file or path name.
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubsribe from the list send mail to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr -----------------------------------------------------------------------