## 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).

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.corrupt, 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.