Archive for the 'batch file' Category

Batch file to read a text file and perform actions

I do a lot of repetitive things on Windows pcs and servers. Often, I’ll need to do the same thing on 10 or more machines, like delete old log files or database backups older than a certain age. In the past, I created a complicated batch file to do a bunch of tasks, but it […]

Time & Date stamp for batch files

This has been driving me crazy – how to get a decent Time & Date stamp in a batch file. After much Googling and experimenting I came up with this.  This was tested on XP Pro with English (United States) Regional Settings and will likely not work if your Regional Settings are different. Take a […]