C
Christian Blackburn
Hi Gang,
All I want is to be able to search a file for files matching a certain
criteria. However, VB seems heart set on returning hidden folders
along with my list of files. I've tried the following:
strFile = Dir(strPath, FileAttribute.Archive Or FileAttribute.Hidden Or
FileAttribute.ReadOnly Or FileAttribute.System)
and this which shouldn't be necessary
strFile = Dir(strPath, FileAttribute.Archive Or FileAttribute.Hidden Or
FileAttribute.ReadOnly Or FileAttribute.System AND
FileAttribute.Directory)
Either way I still turn up my hidden ".svn" subfolder. (The folder is
hidden only, that is it's the only attribute, it's not system or
anything else).
I realize I could then do System.IO.File.Exists(strPath) to make sure
it's actually a file, but that would double the disk access. Pretty
lame if you ask me .
Thanks for any and all help regarding this matter,
Christian Blackburn
All I want is to be able to search a file for files matching a certain
criteria. However, VB seems heart set on returning hidden folders
along with my list of files. I've tried the following:
strFile = Dir(strPath, FileAttribute.Archive Or FileAttribute.Hidden Or
FileAttribute.ReadOnly Or FileAttribute.System)
and this which shouldn't be necessary
strFile = Dir(strPath, FileAttribute.Archive Or FileAttribute.Hidden Or
FileAttribute.ReadOnly Or FileAttribute.System AND
FileAttribute.Directory)
Either way I still turn up my hidden ".svn" subfolder. (The folder is
hidden only, that is it's the only attribute, it's not system or
anything else).
I realize I could then do System.IO.File.Exists(strPath) to make sure
it's actually a file, but that would double the disk access. Pretty
lame if you ask me .
Thanks for any and all help regarding this matter,
Christian Blackburn