How do I make my scripts work in multiple partitions?
Replace any hard-coded references to a partition in your scripts with this piece of code:
objFramework.Partition
You can enter the code Using the Scripting Pop-up Menu: choose Current Framework and then partition.