Windows batch files: .bat vs .cmd?
As I understand it, .bat is the old 16-bit naming convention, and .cmd is for 32-bit Windows, i.e., starting with NT. But I continue to see .bat files everywhere, and they seem to work exactly the same...
View ArticleBatch file to delete files older than N days
I am looking for a way to delete all files older than 7 days in an MS-DOS batch file. I’ve searched around the web, and found some examples with hundreds of lines of code, and others that required...
View ArticleBatch script: how to check for admin rights
How do I check if the current batch script has admin rights? I know how to make it call itself with runas but not how to check for admin rights. The only solutions I’ve seen are crude hack jobs or use...
View Article
More Pages to Explore .....