for /d %%s in (*) do ( tar -c -v --remove-files "%%s" -f"%%s.tar" rd /s /q "%%s" bzip2 -v "%%s.tar" rd /s /q "%%s" )