Download Chapter 1 Contents
Transcript
Re-Saving Programs LIF Examples DOS Examples After you have created a program file (with the SAVE command), you can use RE-SAVE whenever you need to write the program back to the file. This allows you to edit or update an existing program and then easily replace the program in the same file. (If the file does not already exist, RE-SAVE behaves like the SAVE command and creates the file for the program.) The following examples show how to RE-SAVE the program "TEST" to the various mass storage devices. MSI ":,700,0,0" Sets default drive/volume to hard disk, volume 0 RE-SAVE "TEST" RE-SAVEs the file on the default drive/volume RE-SAVE "TEST:,700,0,0" RE-SAVEs the file on hard disk, volume 0 RE-SAVE "TEST:,700,1" RE-SAVEs the file on flexible disk RE-SAVE "TEST:MEMORY,0,0" RE-SAVEs the file to RAM Volume 0 RE-SAVE "\PROGRAMS\VOLTMET\TEST:,700,0,1" RE-SAVEs TEST program under PROGRAMS\VOLTMET directories on volume 1 of hard disk MSI "\PROGRAMS\VOLTMET:,700,0,1" Sets current directory path to PROGRAMS\VOLTMET. Sets default drive/volume to hard disk, volume 1 RE-SAVE "TEST" RE-SAVEs program to current directory path on the default drive and volume RE-SAVE "\PROGRAMS\VOLTMET\TEST:,700,1" RE-SAVEs TEST program under PROGRAMS\VOLTMET directories on flexible disk RE-SAVE "\PROGRAMS\VOLTMET\TEST:MEMORY,0,1" RE-SAVEs TEST program under PROGRAMS\VOLTMET directories on RAM Volume 1 Mass Storage Concepts 4-11