Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Retrieving Multiple files with FTP

Keywords:   Retrieving Multiple files FTP

Question:

I am trying to download mulitple files from a DG unix box to our LAN using the addextender WWWSK34I.DLL with the ftpGet command. I am getting an error when trying to retrieve all files named ISODL.*.* The actual name of the files are ISODL.DDMM.TIME where dd = day and MM = month. I need all the files that are in that directory that start with ISODL.

Answer:

The WinSock extender can only download a file by name. You cannot use a wildcard.

If you know what dates you want, you can build the name with other WinBatch functions (strcat mostly) then download the desired file.

You could build a series of names and try each one in turn.

Alternatively there is an ftplist function that will download a directory listing to a file. The file can then be read and parsed. Not a pretty sight.

Our WinInet extender is better at this sort of stuff.


Article ID:   W12650
Filename:   Retrieving Multiple files with FTP.txt