El Guru Programador
Usuario DESCONOCIDO | Registrate Gratis | Usuarios Registrados
Foro de VBScript
Foros del Guru > VBScript
 
Usuario check if file exists in VBScript
Desconocido
Enviado - 1/9/2006
 
hello,
I need to check in an ActiveX Script Task if a file received via FTP in the server exists.
The problem is that the name of the file changes with the date, i mean:
the name of the file is something like:
costcenter_20060923.txt
but each time we receive the file, the numbers in the name of the file change, so the only part of the name that is always the same is: costcenter_

Is there anyway to know whether a file with name costcenter_*.txt exists?
I have tried with
oFSO.FileExists(nameFile)
but it needs the specific name of the file, and if i use the fileName costcenter_*.txt, it will look for a file with that exact name.

Please, i would be very grateful if you could help me.
Thanks a lot!
 
 

 

Contactos myStudio Network