I have one problem when setting relative path in Folder options of QTP. I want my Run Actionís statement to work according to the relative path which is set in Folder Options. When the script gets loaded for the first time, it works fine with the existing folder path. If I change the folder path through the same script, the folder path are changed properly but Run Action still refers to the previous folder path. I guess this is because the script is loaded in memory and even though we change the folder path to make the Run Action statement to execute according to that relative path, it runs from previous folder path.
My requirement is to frequently change the folder path according to situation and the same action present in different folders will get called accordingly. I change the folder path through QTP Application object in the script.
I guess if after the change in folder path if we reload the run action statements then my problem can get solved.
I would suggest you to look into custom automation framework. In stand creating Action create vbs function then call them into your action. This way you can move your code from one pc to another or move it to Quality Center or move it to network.