OK, dunno about for Windows, but here's a Linux/OSX/Cygwin version of bzip.sh that uses 7zip instead.
Assuming 7z is the name of the 7zip executable that is.
Code:
#!/bin/bash
FILE=$(basename $0)
if [ ! -d compress ]
then
mkdir compress
fi
find . -type f ! -name "*.bz2" ! -name "${FILE}" -print0 | xargs -0 -I % 7z a -tbzip2 compress/%.bz2 %
find . -path "./compress" -prune -o -name "*.bz2" -print0 | xargs -0 -I % cp % compress/%
This
probably also works if bzip.sh is in a different directory, as I changed how bzip.sh is removed from the find list.
Note: I didn't redirect its output to /dev/null, so it'll show the status of each file as it comes up.
Edit: Updated to copy any existing bz2 files into the compress folder.
__________________