mahasund
14th March 2002, 00:26
Hello Folks,

I am trying to transfer an ASCII file from Unix BAAN server to a shared folder on NT server. I do not want to use interactive FTP utility to achieve this. I want to automate this process from my BAAN DLL.

Is there any way to acomplish this task.

I am stuck at a very critial stage of my project,

Any and ALL timely help is greatly appreciated,

Thank you in advance,

SUNDAR.

shah_bs
14th March 2002, 04:13
Try the following:

if (server2client(p.unx.file.nm.c, f.target.flnm.c, 1)) < 0
then
mess("ppmmm9999.c", 1)
|* File Transfer to Client Machine failed. Please note
|* down the File Name and transfer manually.
endif


This assumes you have assembled the unix file name and the target file name suitably. Example:

UNIX: /tmp/requiredfile.out

DOS: C:\temp\dosfilename.out
Watch the backslashes!

By the way, the '1' (third argument) indicate that the file transfer is a 'text mode' transfer. Actually, any non-zero value implies 'text mode' transfer. (Use '0' if you need binary transfer).