shred / tzxtools

Tools for processing TZX files
GNU General Public License v3.0
100 stars 25 forks source link

Convert all files in a directory using tzxtap #14

Closed lackovic closed 5 months ago

lackovic commented 5 months ago

How do I use tzxtap to convert all TZX files in a directory to TAP files, keeping their name and changing the extension to TAP?

If it's not possible, would you consider adding this functionality?

shred commented 5 months ago

This can be simply done using the shell. For example, on Linux and bash, you can convert all files in a directory like this:

for file in *.tzx; do
  echo "$file"
  tzxtap --to "${file%.tzx}.tap" "$file"
done

If you need recursive conversion, you can do something similar with find instead of for.