vitaly,

What I think you're missing and that Jooel has tried to point out a few times now is that your links , even though they point to a different location, they are not named different.


i.e. xmREPORT.lnk

You can't have 3, 6, 9, 12 or any other number of "different" links if they are the SAME name. The only thing that happens is that you end up with your xmREPORT.lnk link that now points to the location of the last time it was written to.

i.e.


1 Check If InGroup(1) write xmREPORT.lnk to c:\temp
2 Check If InGroup(2) write xmREPORT.lnk to c:\temp\big
3 Check If InGroup(3) write xmREPORT.lnk to c:\temp\downtown

You end up with 1 link that now points to c:\temp\downtown no matter how many times you run it.

You have to have a different name for each possible combination of links.

So you could have:
xmREPORT(1).lnk
xmREPORT(2).lnk
xmREPORT(3).lnk

xmREPORT(Canada).lnk
xmREPORT(Hungary).lnk
xmREPORT(Spain).lnk

etc.... and that would work just fine. But you can't have 3 shortcuts named the same: xmREPORT.lnk