to compress or uncompress multiple files do not mention the target file of that folder just use the command without targeted files as:
compact /C
it will compress all the files folders present in that directory
...
https://www.youtube.com/watch?v=PCWwtItJfos