Woo Hoo !
From a command window when I enter:
FTP -s:\\OURSERVER1\Flatfile\FTP.EXPORT\ftpscript1.txt > C:\ftp.log
it sends the file and writes the log !!!
It will not write the log from inside the program as shown above.....
Thanks. I've come a long way just seeing that it will work.
Nancy
[EMAIL PROTECTED]
----- Original Message -----
From: "Bill Haskett" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 07, 2007 4:01 PM
Subject: RE: [U2] FTP
Nancy:
Sure it works. I just got to a DOS prompt and did the following (remember
the prompts don't work too well when I'm redirecting output so I have to
know what the prompt would normally say).
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\myuser>ftp 192.168.1.26 > e:\ftp.log
myuser <-note: the authorized user on the ftp server
Password: <-note: the password for the above authorized user
quit <-note: I'm on so quit the ftp session
C:\Documents and Settings\myuser>
Then I looked at the "C:\ftp.log" file and it looked like:
Connected to 192.168.1.26. 220 FTP server ready.
User (192.168.1.26:(none)): 331 Password required for myuser.
230 User myuser logged in. Access restrictions apply.
ftp> 221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 194 bytes in 0 transfers.
221 Thank you for using the FTP service on dbserver.
If I ran this from the script I posted earlier, everything would work
without input from you.
Bill
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nancy Fisher
Sent: Wednesday, March 07, 2007 3:04 PM
To: [email protected]
Subject: Re: [U2] FTP
I tried just one '>' and then I tried 2 '>>' and still nada.
I tried with spaces around the >> and all run together.
I tried it with and without a path (C:).
I don't get results but with the addition of > or >> the file doesn't get
sent either.
thanks,
Nancy
[EMAIL PROTECTED]
----- Original Message -----
From: "Bob Woodward" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 07, 2007 2:24 PM
Subject: RE: [U2] FTP
Hi Nancy,
I've done a pretty fair bit of work with DOS command scripts of late.
You might be looking for the ">>" function added to the end of your CMD
command. Something like this:
CMD = "FTP -s:\\OURSERVER1\Flatfile\FTP.EXPORT\ftpscript1.txt >>
ftp.log"
I'd have to do some playing around but I think that might be what you're
looking for. This should result in the displayed information of your
FTP process ends up in the "ftp.log" which is a text file in your
current directory.
BobW
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/