I think there's a problem with your original command as I couldn't get it to work. I've modified the command and this works for me. I created a test directory with some wmv, pk, and tar files:

...