I have this code in a loop.. but id like to exclude the hidden .doc files. Can someone imprve it?
'add the doc files
For Each CurrentFileInfo As FileInfo In DirInfo.GetFiles()
If CurrentFileInfo.Extension = ".doc" Then
this code includes the hidden files with start of "~"