List of filenames in folder of share drive to unix

view story

http://www.unix.com – I am trying to get the names of files present in the particular folder to a text file and store that file to a unix location. For that I am using the ftp command . now all the code till the accessing te share drive is working (cd share drive location), but after that I am using a command- cd 'directory share drive put 'ls > /data209/abc/abc.txt(unix location)' but this is not working and I am not able to get the names in a text file at unix location. Please help (HowTos)