If the last part of the file name is always the same can't you use 
If Trim$(Right$(F("FileName"), n)) = constantpartofname then
download the file
End if.

n=the length of the constant part of the name

Donna Ledgerwood
Senior Integration Analyst
Micro Star  
Home Office: 315-536-0834
Cell:  315-729-3804
Fax: 315-536-7338
EMAIL: [EMAIL PROTECTED] 
  ----- Original Message ----- 
  From: Gary Williams 
  To: [email protected] 
  Sent: Thursday, March 13, 2008 1:59 PM
  Subject: [Talk] FTP Question


  I have a script that needs to get 3 files from a vendors ftp site. The files 
names change daily as the first part of 
  the name is the days date.  I seem to be able to get it to work if the name 
is the same but I can figure out
  how to take the variable name into account.

  Thanks,
  Gary Williams


------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG. 
  Version: 7.5.519 / Virus Database: 269.21.7/1327 - Release Date: 3/12/2008 
1:27 PM

Reply via email to