Hi all,
Preliminaries:
1) This is in a SQL Server 2000 DTS Package
2) The flat file is on the server itself (duh)
3) The flat file always has a date stamp appended to the end
4) The date stamp isn't always the date the file was FTP'd to the server
Question:
I need to be able to check for the existance of a flat file on the server. It is a required file for the DTS to execute successfully. The flat file comes down ni a format as such: "MyFile_06192006". The date stamp is always at the end, but will not always be the current date (it's relative to the data within the flat file). Before we added the date stamp, I used FSO.FileExists. However, nothing I try now to trim off the datestamp seems to work.
I'm open to all ideas!
Thanks!!!
Preliminaries:
1) This is in a SQL Server 2000 DTS Package
2) The flat file is on the server itself (duh)
3) The flat file always has a date stamp appended to the end
4) The date stamp isn't always the date the file was FTP'd to the server
Question:
I need to be able to check for the existance of a flat file on the server. It is a required file for the DTS to execute successfully. The flat file comes down ni a format as such: "MyFile_06192006". The date stamp is always at the end, but will not always be the current date (it's relative to the data within the flat file). Before we added the date stamp, I used FSO.FileExists. However, nothing I try now to trim off the datestamp seems to work.
I'm open to all ideas!
Thanks!!!