Re: Finding if a file does not exist
- From: "Marco Shaw" <marco@xxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 13:14:30 GMT
> Please post a short list of actual filenames and then explain in more
> detail how you want the script to react to the list.
These are the actual filenames I need to look for:
xxx_ACCOUNT_INFO.20050824_015000.INPUT
xxx_ACCTSTSCHG_CDR.20050824_045520.INPUT
xxx_ADJ_CDR.20050824_045103.INPUT
xxx_CALL_DTL_CDR.20050824_030001.INPUT
xxx_CHARGE_CODE_INFO.20050824_045454.INPUT
xxx_RCRCHRG_CDR.20050824_045259.INPUT
xxx_VOUCHER_INFO.20050824_045648.INPUT
xxx_VP_RELOAD_CDR.20050824_045147.INPUT
For the first file, for example, it ends with "015000.INPUT". The "015000"
part is variable, and I can never know ahead of time what it will be, but I
know for sure that file with start with the string
"xxx_ACCOUNT_INFO.20050824_".
I need to create a script that builds this filename (or at least builds the
part "xxx_ACCOUNT_INFO.20050824_", which I know how to do already), and then
checks to see if the file exists (actually if it doesn't exist) starting
with this same string in the filename in a specified directory.
Since I only know for sure that the file starts with a certain string, I
don't know how to extend that to make sure I'm just looking for an existing
file that matches the string I know.
Hope that's clearer...
Marco
.
- Follow-Ups:
- Re: Finding if a file does not exist
- From: James Whitlow
- Re: Finding if a file does not exist
- From: McKirahan
- Re: Finding if a file does not exist
- References:
- Finding if a file does not exist
- From: Marco Shaw
- Re: Finding if a file does not exist
- From: McKirahan
- Re: Finding if a file does not exist
- From: Marco Shaw
- Re: Finding if a file does not exist
- From: James Whitlow
- Finding if a file does not exist
- Prev by Date: Re: using system variables in VBscripts
- Next by Date: Re: detecting which process attempts to start outlook
- Previous by thread: Re: Finding if a file does not exist
- Next by thread: Re: Finding if a file does not exist
- Index(es):
Relevant Pages
|