WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

FTP Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:03:01:15:10:02
Last Updated: 2001:03:01:15:10:02