APPLICATION NOTE #108 SAVING TO MULTIPLE DRIVES Rev. 03 Related files: SAVE.PGM This application note describes a program that lets you save your files to two locations at the same time. It is particularly useful if you are working on a hard disk sys~tem and want to make backup copies of your files on a floppy disk drive. PROGRAM DESCRIPTION SAVE.PGM is a XyWrite program file that is designed to save the displayed file to its original location and to drive A. It works by first testing to see if a file is currently displayed, and storing some information about the results of that test. The program also checks to see if a file of the same name exists on drive A, and deletes the stored version if it does exist. Finally, the program saves the displayed file to both locations. A copy of SAVE.PGM is avail~able on request. CUSTOMIZING SAVE.PGM SAVE.PGM is set up to make backup copies on drive A. If you wish to make backup copies to a different location, you must customize the program. 1. Call SAVE.PGM to the screen. 2. Enter expanded mode. Press: Ctrl F9 3. Move the cursor to the SV02 command. 4. Replace the A: with the drive and path you want to use as the backup destination. For example: <> Result: When you run SAVE.PGM, the backup copy of your file will be saved to the drive and path you indicate, using the same filename. USING SAVE.PGM Once you have customized the SAVE.PGM file, load it onto a Save/Get key with the LDPM command. For example, to load the program onto the S key: Type: F5ldpm save.pgm,s Now, when you are ready to save your file, you simply press AltS. To make sure the program is always loaded, you could put the LDPM command into your startup file.