Finding Files Question
Posted: Wed May 24, 2006 9:15 pm
Hi i have been trying to figure out how to get files from a sub directory but only if they are in a specific folder.
Perfect example is that i want to clean out .MAI files spam boxes, but not from other sub folders such as the inbox so to do that i need to create a file list but it seems i can use wild charaters for folders.
EG.
D:\MailServer is where i want to start searching. I have 2 sub folders
D:\MailServer\domain1.com
D:\MailServer\domain2.com
within each of these folders i have inbox, outbox, spam which all contain .MAI files
How do i delete only the .MAI files out of the spam directories.
I would presume the rule would be
D:\MailServer\*\spam\*.MAI but doesn't seem to take the * char as a wild card in the file search
Your help would be greatly appreciated.
Tim
Perfect example is that i want to clean out .MAI files spam boxes, but not from other sub folders such as the inbox so to do that i need to create a file list but it seems i can use wild charaters for folders.
EG.
D:\MailServer is where i want to start searching. I have 2 sub folders
D:\MailServer\domain1.com
D:\MailServer\domain2.com
within each of these folders i have inbox, outbox, spam which all contain .MAI files
How do i delete only the .MAI files out of the spam directories.
I would presume the rule would be
D:\MailServer\*\spam\*.MAI but doesn't seem to take the * char as a wild card in the file search
Your help would be greatly appreciated.
Tim