Here are batch files I use for unpacking and repacking a CIA. Drag and drop into them. Avoid spaces in filenames.
https://dl.dropboxusercontent.com/u/183608682/cia_unpack_repack.zip
Am I doing something wrong? Every time I try to unpack my cia file I just get this: