jgoss1
asked on
Searching the directory for a unique extension?
I have a program that creates a flat file that uses the current date/time to name the file. This will be the only file in the folder with a ".651" extension. I have another program that needs to pick-up this file. Since, I can't use the file's name, is there any code that will allow me to seach the folder for that extension and open the file?
Below is an an example of the address.
Y:\\INCOMING\\OSS\\2007040 4131022.65 1
Below is an an example of the address.
Y:\\INCOMING\\OSS\\2007040
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And how is that different to what I suggested?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What JKR suggested is right.These are the alternate ways of implementation.
ASKER
jkr,
Thank you for the solution help and the information on where to find it in MSDN. I got the program to find the file. Thanks!
DeepuAbrahamK and bijulpoli,
The examples help me understand how jkr's solution worked. Thanks for the back-up support.
I might actually get this program finished by my deadline...well... maybe. ;)
Thank you for the solution help and the information on where to find it in MSDN. I got the program to find the file. Thanks!
DeepuAbrahamK and bijulpoli,
The examples help me understand how jkr's solution worked. Thanks for the back-up support.
I might actually get this program finished by my deadline...well... maybe. ;)