Tag Archives: batch

Windows 32 (x86) or 64 (AMD64) detection in batch files

While there are a lot of ways to detect for a 64 bit version of windows. you can test for %programFiles(x86)%, but handling the output and writing the IF comparisons is messy. In Batch files, you can easily check for architecture by using the “processor_architecture” variable. x86 versions of windows will have this set to “x86″, [...]
Posted in windows | Also tagged , , , | Leave a comment

Batch extract a directory full of split RAR archives “part1″, “part2″

If for some reason you have a directory full of RAR archives, and each is split into parts, extracting them individually can be a pain. If you just type “unrar *” into the terminal, you will extract each file multiple times depending on how many “parts” it has. First, install the “unrar” package: sudo aptitude install [...]
Posted in Uncategorized | Also tagged , , , , , | Leave a comment