I have a bunch of tar.xz files I need to extract. I tried using the following command, but get an error.
tar -xJf "S:This_Is\the path\to_my_file.tar.xz"
tar: Error opening archive: Can't initialize filter; unable to run program "xz -d -qq"
I have tried both -xJf and -xf and get the same result. I am able to use 7-zip to open the files, but for this I have to manually unzip each file from .xz first and then untar, and this is a bit of a pain. I have previously been able to use a .bat file to extract lots of tar.gz files and would like to do the same for the tar.xz files. Is there a way to make this work?