I know there's a Mac program called Hazel that does this with file extensions as specifications...
try googling Hazel for Windows...there isn't an exact program but there are tons I saw when googling that...all have different features with them.
Here is one for example.
http://www.purllow.com/hygeia/