I need to change the absolute path to relative paths for all my scripts. I came up with a vbscript which does that for me.

I'm able to change the paths for function libraries but when i do the same thing for Object repositories, i see the relative path being converted to absolute path. This is happening when i change my path using AOM and is perfect when i do it manually.

i'm using the code below to update the paths for OR

Set qtRep = QtpApp.Test.Actions(QtpApp.Test.Actions(intLoop).N ame).ObjectRepositories
For intLoop = 0 To qtRep.Count - 1
qtRep.Remove (intLoop + 1)
qtRep.Add strRelPath, intLoop + 1

Please let me know if i'm missing anything