Lakshmikanth Balasundaram
  • Home
  • Cloud / SaaS
  • Downloads
  • About
Subscribe
Tagged

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 "cmd /c if

  • lakshmikanth
lakshmikanth Apr 9, 2014 • 1 min read
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

  • lakshmikanth
lakshmikanth Apr 8, 2014 • 1 min read
Lakshmikanth Balasundaram © 2022
Powered by Ghost