I would say there is no way to make it work with redirectoutput() like it was.
you are basically saying the output will be a file c:\crypto_ftp_out and then while that file is still open in kixtart, you are trying to tell operating system that it is a folder instead.
so, if the folder is not there, kixtart makes it a file and no output can be done to a folder with the same name. if it is there as a folder, redirectoutput will fail.
_________________________
!

download KiXnet