10-16-04 02:26 AM
"Daryl Kanary" <sparty_1984@hotmail.com> wrote in message
news:UxQad.16749$Qv5.10303@newssvr33.news.prodigy.com...
> thanks for the reply, but I think I didn't make my question clear.
>
> I am not having any trouble getting an ftp script to work, my issues is I
> need to get a "Directory Listing" from the remote server so I know the
names
> of the files there and I need to get this listing into a file on the local
> machine. manually I would just connect and do a "dir or ls" command. my
> question is how do I pipe that to a file on the local machine?
This is really an issue with the FTP client, rather than with the server,
but I can answer it for you. The "dir" or "ls" commands in the FTP client
take two arguments, both of which are optional. The first argument is
interpreted as the directory or file you want to list, and the second is
interpreted as a file to which you wish to send the output.
So, to list the current directory (whose shorthand name is ".") to the file
"fred.txt", you would use the command "dir . fred.txt".
Alun.
~~~~
[ Post a follow-up to this message ]
|