Osmosis under Windows - how to best use the planet-latest.osm.bz2

Ciao!

I’ve downloaded the planet-latest.som.bz2 i would like to export just the administrative boundary of level 2.

I would like to do under windows…

i’ve succesfully test the osmosis with a small osm file… and this seems that runs well:

osmosis --read-xml smallInputFile.osm enableDateParsing=no file=- --tf accept-ways boundary=administrative --tf accept-ways admin_level=2 --tf reject-relations --used-node smallOutputFile.osm

Now i would like to use the bigger bz2 file (13Gb!!) and i would like to try bzcat.exe for windows…

i tryed this:

bzcat planet-latest.osm.bz2 | osmosis --read-xml enableDateParsing=no file=- --tf accept-ways boundary=administrative --tf accept-ways admin_level=2 --tf reject-relations --used-node --write-xml file=- | bzcat -z > extractedBoundary.osm

but after two hours of cpu work i got this message:

bzcat: I/O or other error, bailing out. Possible reason follows.
bzcat: Invalid argument
Input file = planet-latest.osm.bz2, output file = (stdout)

What i can do??

Thanks
Alberto