Lakshmikanth Balasundaram
  • Home
  • Cloud / SaaS
  • Downloads
  • About
Sign in Subscribe

Windows Batch

A collection of 2 posts
How to

Batch file to delete files older than X days

Quite often, we have an requirement to delete old log files and used powershell scripting in my previous project. With this customer, they are still with Windows 2003 and have to use batch file to achieve the same. FORFILES /p "E:\logs" /s /m *.* /d -3 /c "
09 Apr 2014
How to

How to generate file name with timestamp in windows batch file?

Recently, we had requirement to generate unique file name to transfer data to another DC in an encrypted format from Windows 2003 server. As a POC and to keep costs down, we decided to use windows batch file scripting to do this. We suffixed data file name with timestamp to
08 Apr 2014 1 min read
Page 1 of 1
Lakshmikanth Balasundaram © 2025
Powered by Ghost