in reply to to Extract file type from a folder

I've heard rumors Win32::ChangeNotify can help you with such things, in that it could notify you when something changed in c:\temp — but AFAIK, you'd then have to figure out what changed, i.e. you'd have to explicitly check for your .dcm file every time you're being notified of a change...