FTP-script question.

savoc

Distinguished
Dec 31, 2007
18
0
18,510
FTP-question:
I have (huge) problems to send files with variable filenames. Filename always begin with same letters, like ABCxxx.txt. xxx's changes randomly.

How do I send and receive files by using FTP-script if i don't know filename exactly? PUT abc*.txt -command won't work with ftp like DOS does.

Here's an example how it should work.

USER somebody
password
ascii
put abc*.txt (Here's the whole problem)
quit
 
I reply to myself 😉
mput command send multiple files:

USER johnsmith
password
ascii
mput abc*.txt
y
quit