Discussion Locked

Batch file wild cards

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a batch file to ftp files to a IP address and am using wildcards:
PUT E*.*
however this only sends one file.
QUESTION:
How do I send the others if they are there?

The batch file reads a text file to FTP:
FTP -s:ftp.txt
After ther FTP, the files are put into an archive folder. I have to move the extra files back and FTP again as it is now.

7 replies

by mphoffar

I I'm remembering correctly, you want to use mput and mget to send multiple files like that

Mark

by emcs

Yes, the mput command will send more then one file. Good luck.

dennie

by jtmech

\PUT E*.* WILL SEND FILES WITH FILE NAMES BEGINING WITH E + ANY NUMBER OF CHARACTERS WITH ANY FILE EXTENTION. IN ORDER TO SEND ALL FILES, FORGO THE E IN THE COMMAND LINE. \PUT *.* SHOULD SEND ALL FILES WITH ANY FILE NAME AND ANY FILE EXTENTION. IF YOUR ONLY GETTING ONE FILE TRANSFERED YOU MAY ONLY HAVE ONE WITH A FILE NAME BEGINING WITH E.

This discussion is closed to new replies.