Hi,
Your requirements are quite clear so no questions about it. However, batch is unnecessarily incompetent for these. Please let me know if powershell is ok for you or better if an executable implemented with c# is acceptable. I can handle this within 24 hours at most, most likely in the next 12 hours, if one of these is ok for you, thanks.