the filesystem object in the Windows scripting shell for this. Then it's a not too difficult VBScript or Javascript in stead of a basic batchfile.

Kees