richen
5th May 2006, 10:33
I want to ftp a file in to a BaaN directory. The file is coming from an NT server.

first I want to know wetter there is a file in the directory or not. Because I don't want to override the existing file.

I have made a batch file on an NT server. So I want to check from NT to AIX for the file existents.

How can I do this?

csecgn
5th May 2006, 11:49
ftp -s:<command file> <server adress> > <output file>

Structure command file

<user>
<Password>
cd <directory>
ls
bye

After this you only have to check in the <out file> if your file exists. The last time if done this, I used VB (the ftp has just been a small part of a bigger project)

hth

Regards
csecgn