It's pretty much impossible. But mine have gotten in a routine for when I take them for walks separately.

Example:
"Mickey, come. Molly, stay."

To the dog who is staying, I will say it lowly and sternly.