You say you`re opening the template using VI server.
This means that you already HAVE a reference to each vi you have opened (Somewhere in the code). Collect the VI references for each instance when opening (in an array for example), and use these to programatically close the VIs.
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)