## Working with Part Program Archives

PC-DMIS provides some basic part program archiving. Two copies of your part program are automatically created in the background during these events:

- <name>.prg~ is created just before saving the part program (where <name> is the part program name).

- <name>.prg^ is created just before loading the part program (where <name> is the part program name).

Note: The above backup PRG~ and PRG^ files have the hidden attribute set and won't be visible in Windows Explorer unless the "Show hidden files" option is set.

If you try and open a corrupted part program, PC-DMIS asks if you want to open the copy it made before the last save (<name>.prg~). If you choose Yes, PC-DMIS renames the corrupt part program to <name>.prg.tmp (by default, these files have the hidden attribute set to be hidden and won't be visible in an Explorer window unless the "Show hidden files" option is set correctly), and it renames <name>.prg~ to the current part program name. If, for some reason, that backup was also corrupted, PC-DMIS asks if you want to restore from the backup that was made just before you loaded the part program during your last session (<name>.prg^). It then follows the same process of renaming and copying.

Warning: As with any backup/restore process, you may lose your latest changes when restoring.

You can disable/enable this functionality by using the DocumentRecovery entry in the PC-DMIS Settings Editor.