G Guest Jan 9, 2006 #1 How do I test for the existance of files with a .txt in a given folder? Thank you.
M Marshall Barton Jan 9, 2006 #2 BobbyS said: How do I test for the existance of files with a .txt in a given folder? Click to expand... Dir(strPath & "\*.txt") will take care of this. It returns a zero length string if there is no file to find, or the first file name if one is found (subsequent calls to Dir() will return the next file name that matches).
BobbyS said: How do I test for the existance of files with a .txt in a given folder? Click to expand... Dir(strPath & "\*.txt") will take care of this. It returns a zero length string if there is no file to find, or the first file name if one is found (subsequent calls to Dir() will return the next file name that matches).