Providing enduser with upgrade script
I'm trying to figure out how to provide the user with a script that would do someting like this, given that I have a data separation model:
1. Put a copy of their current Data File (let's call it Data.USR) in a subfolder called Old.
2. Delete the current Data.USR.
3. Rename the supplied updated Data File to the proper name. For instance, rename it from Data._ to Data.USR.
4. Import data from Old/Data.USR to Data.USR.
I can easily do step 1 and 4. Steps 2 and 3 bother me. Data.USR will be open,and stay open, even if I use the Close File command in the script, because the interface file needs. I don't see a way around this. I've tried Troi File plugin, but I get an error $$32, which I would expect because Data.USR always stays open.