WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: MW4 on July 19, 2016, 03:02:44 PM

Title: iftpget wildcards
Post by: MW4 on July 19, 2016, 03:02:44 PM
Is there some documentation on the use of wildcards in using an iftpget command?

A point in the right direction would be appreciated.
Title: Re: iftpget wildcards
Post by: td on July 19, 2016, 05:15:47 PM
I am not aware of any specific documentation with regard the use of wildcard characters in in either of of the functions file parameters.  You can use the iFtpFindInit and iFtpFindNext to retrieve a list of files that match a mask.

You can always  try a few wild cards with iFtpGet and see what happens but I seem to recall that the underlying Windows API  for iFtpGet does not support the use of wild cards.
Title: Re: iftpget wildcards
Post by: td on July 20, 2016, 09:21:18 AM
This Tech Database example is a bit busy but it illustrates using wild cards with the iFtpFindInt and iFtpFilenext functions to fetch multiple files:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/WinInet+iFtpGet~Newer~Files~Only.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/WinInet+iFtpGet~Newer~Files~Only.txt)