For each file, call ClearFiles on the command object you're using to clear any existing files inside it, then use AddFile to add just the file you want to affect to it.
For each file, call ClearFiles on the command object you're using to clear any existing files inside it, then use AddFile to add just the file you want to affect to it.