TEMPDIR -- create directory for temporary files If you need large amounts of file space while you are logged in but don't need to keep the files between terminal sessions, you can create files in a temporary directory for the duration of your terminal session. You can invoke PUBLIC:TEMPDIR.COM to create a temporary directory which you can address with the logical name SYS$SCRATCH (or TEMP, since SYS$SCRATCH is a bit long). Files in this directory will be deleted when you log off. To refer to a file in this directory, prefix the file name with SYS$SCRATCH: (or TEMP:). To create the directory and define TEMP, enter the command $ @PUBLIC:TEMPDIR TEMP Note that all files in this temporary directory are deleted when you log off. If you want to save any of the files, you must copy them to your regular directory. If you are disconnected during a terminal session, you will probably lose your temporary files. If the system goes down, the files may still be there when you log back in, but don't count on it. It is probably unwise to use the SYS$SCRATCH directory for any files that are not truly temporary. FUNCTION COMMAND Create directory and @PUBLIC:TEMPDIR TEMP define TEMP Copy file X.DAT to TEMP COPY X.DAT TEMP:X.DAT List TEMP directory DIR TEMP Delete X.DAT from TEMP DELETE TEMP:X.DAT; Create file with EDT EDIT TEMP:X.DAT Copy file from TEMP COPY TEMP:X.DAT X.DAT to default directory Set default to TEMP SET DEFAULT TEMP Set default to your SET DEFAULT SYS$LOGIN directory NOTE: At this time, we do not currently delete the temporary directory when the user logs off.