[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Backup directory for Xy4? (Corrected)



Reply to note from "Robert Holmgren"  Mon, 23
Jan 2006 22:35:47 -0500

>> I would like Xy4 automatically to place the backup files it
>> creates in a directory that is separate from my working
>> directory.

> U2 frames SAVEBAK, SAVE2, and USAVE all do this: take your
> pick.

Note that SAVEBAK and USAVE both generate multiple backup files.
SAVEBAK has a limit of 999 backups per filename; with USAVE, the
number of backups is unlimited. Since the backup files can become
quite numerous, these routines are best reserved for situations
where it's critical to preserve intermediate versions of a work in
progress. For everyday writing, they're probably overkill.

Of the three routines, SAVE2 is the closest to default BK=1. You
assign it in place of your normal SAve key, thus:

nn=NOJM(,2,.,s,a,v,e,2,)

In addition to performing a regular SAve, it makes an additional
copy of the file, using the original filename (not .BAK or any
variation thereof), in the directory specified in XyWWWeb.REG
variable AutoSave2_Path. (The default location is , the
directory where Editor saves its TeMP files.) If the file already
exists in the backup directory, it is overwritten.

--
Carl Distefano
cld@xxxxxxxx