Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate |
Barry
MacDonnell's Toolbox for WordPerfect |
||
Macros, tips, and
templates for Corel®
WordPerfect® for Windows® |
Page
updated Sep 6, 2024 |
|
WordPerfect
Tips Main tips page | Browse more tips |
||||
Automatically make
back ups of your document to help you recover your work Using WordPerfect's built-in backup features (and some other backup methods)
|
■ Overview Saving your work is important — which is why this is a very comprehensive explanation of WordPerfect's two automatic backup features. A good understanding of them can help save time and minimize frustration. If these features are enabled (turned on) they will automatically save backups of your current work — but they work in very different ways, as explained below. To enable them choose Tools, Settings, Files, which opens the Files Settings dialog (see next image). Under the Document tab on that dialog you should see something like this: There are two checkbox options related to these features: Option 1: "Timed document backup every X minutes" Option 2: "Save original document as a backup at each save" (in WordPerfect 8 and earlier this was "Original document backup") Important points
► These two options are user settings so
they might
not be turned on (i.e., check boxes ticked).
Option 1 should normally always be turned on. It makes a temporary backup copy of the original file as insurance against an abnormal program termination. [You will see more about this option below.]
Option 2 is useful to many users — but it makes (and keeps) just one backup version of the original file each time the original is manually saved. [You will see more about this option below.] The above image shows this option was set off, which is just the author's preference. ► These options have different purposes and work in different ways, as explained in the next sections. ► Even with both options enabled . . . you still need to save any changed files before you close them. As mentioned, these options offer some protection to help you restore your work but neither option will
protect you from data loss if you manually close a changed file (e.g.,
with File, Close) without deliberately saving it first, or when the
program asks you if you want to save changes to the file and you answer "No".
Tips
☼ For the best insurance
against data loss in WordPerfect (as well as in other programs) see
the end of this page under "The best method."
☼ For solutions (or information that might help you find solutions) to some related problems please read through the material below. ☼ [Advanced topic:] To create a macro to quickly toggle these settings on/off see Footnote 1. ■ Option 1 - "Timed document backup every X minutes" Purpose • This
first
automatic back up feature — if enabled (checkbox ticked) as in the image above — is
designed to
increase the chance that you will be able to recover your work after a
power failure, program
lock-up, system crash, or other abnormal method of exiting WordPerfect
such as shutting off the power to your computer while an unsaved
document is still
open.
• It is not a replacement for deliberately saving your open files periodically. In fact, it simply and automatically creates a temporary copy of each currently open and changed file on your drive, on a periodic (timed) basis. • Important point: These temporary timed backups are normally automatically deleted when either the edited documents or the WordPerfect program are closed in a normal fashion. In certain circumstances you might be able to use them to recover accidentally deleted material, as discussed below — but don't count on it. If your work is important, you should deliberately save it often. Should you enable it? Most users will
want to have this feature enabled. It is generally considered to be a
Good Thing.
The files it can create — a maximum of one timed backup file for each open (and changed) document — are deleted upon a normal exit from the program. But they are retained after an abnormal exit from the program to give you a chance to recover their contents, as explained below. How much time should you specify? The "conventional
wisdom" is to set the timed backup to not less than 5 minutes, nor
much more than the default of 10 minutes. [See Tools, Settings, Files, Document (tab) for
this setting.] Joell Haugan, a
Corel C_Tech, once said:
Moreover, if you
set it to a very short interval (e.g., 1 minute), you may notice the
program slows down or even stops, while WordPerfect continuously tries
to save your work. The Windows spinning hourglass (or time wheel) that appears on your
screen might be indicative of a too-short time setting.
How the timed document backup works ■ When you
make a
change to an open file, WordPerfect will (at the specified backup time) create a temporary backup of that file on
disk.
Side note:
An initial temporary backup is made even if the document is new and has not yet been saved. This is a major reason why the temporary backup file has a temporary, program-generated name (see next paragraphs below for examples) rather than a variant of a standard, user-created filename. Because a standard filename is not attached to a document unless and until it is saved at least once, any automated timed backup versions of documents necessarily must employ temporary filenames for newly created but (as yet) unsaved documents. It also makes sense for the program to use this method for previously saved ones, as well. ■ Temporary timed backup files are stored in a special backup folder specified in the Tools, Settings, Files, Document (tab), "Backup folder" field. Note:
This folder is a different disk location from the one(s) used by the "Save original document as a backup at each save" feature, as explained in the Option 2 section below. By design, the default timed Backup folder is a program folder created by WordPerfect, located as a subfolder in - C:\Users\<username>\AppData\Roaming\Corel\WordPerfect\... Recommendation:
Unless you have a very good reason to use some other (empty) folder on disk for storing your temporary timed backup files — and using that "other" folder in the (File Settings) Backup folder field — you should use the WordPerfect program's default disk location displayed in that field. Otherwise, unexpected consequences and confusion become more probable. (Just an opinion.) The following material in this Option 1 section explains more about how it is used in normal (and abnormal) circumstances, and when you might need to access it. Cautions:
Generally you should not use that Backup folder for other purposes, since the program uses it dynamically as a "work space" to [1] store its temporary timed backups, [2] update those files as needed based on your chosen time schedule, and [3] delete them when the program exits normally (i.e., open files are saved and the program is closed in the normal manner). (See more information in this section below.) If you use that Backup folder for other purposes, the possibility arises of conflicting or unexpected tasks for the program to deal with. Remember, this is a folder for the program to use, not as a location to store your user (or any other) files. ■ Temporary backup files will have a program-generated filename with an incrementally numbered filename extension (.bk# — where # is a number). • Starting with WordPerfect X6 (c.2012) these temporary files have long
filenames beginning with the letters WPWIN and followed by a unique session identifier, like these examples (using WordPerfect X8 for illustration):
WPWIN18_1388_1D388A3D7BCAE70.bk1
WPWIN18_1388_1D388A3D7BCAE70.bk2 etc. The filename's string of numbers and letters that follow WPWIN are program-assigned and will be different for each WordPerfect session. However the filename extension's sequentially numbered pattern (.bk#) is always the same for any given session: the first temporary file will be numbered .bk1, the second will be .bk2, etc. • WordPerfect X5 and earlier versions also use temporary files, but with shorter filenames having the same program-assigned pattern (i.e., wp{wp}) for every WordPerfect session, like this: wp{wp}.bk1
wp{wp}.bk2 etc. As with modern WordPerfect versions, the filename extensions have a sequentially numbered pattern (.bk#) that is always the same for any given session: the first temporary file will be number .bk1, the second will be .bk2, etc. • At this point you may be wondering: Why does the program use such strange names for these temporary files? Wouldn't it be better to name them in some more recognizable way — perhaps based on the original filename of the document that was still open when the crash occurred? For those interested in this topic, below in Footnote 3 is my personal take on this issue. This change "starts the clock" for the temporary backup
of that file — which backup will be made at the timed delay point (specified in the Tools, Settings, Files dialog)
whenever more changes are made to the document during the session.
As you might expect, once a temporary backup is made to an open document no further backup is made until another change to that open document is made — which starts the clock again. In essence, WordPerfect takes a "delayed snapshot" of the entire changed document and stores it in a temporary disk file. As long as the original file remains open — and even if you switch between other open documents — this temporary file will be automatically updated after each change, according to the time delay you specified in the File Settings dialog (image above). ■ Notes ¤
Numbering: Since WordPerfect versions X6 (c.2012) and later versions can open multiple instances of the program during a given session [versions X5 and earlier can only open up to 9 documents in a single instance], the digit at the end
of the temporary backup filename will correspond to the
edited document's internal number
assigned when you opened it.
Thus, assuming you are actively editing several open documents, there might be multiple temporary backups existing at the same time. ¤ The two automatic backup features discussed on this page use different filename conventions: The filename and extension format above is quite different from that assigned to the "Save original document" backup described below. It's worth emphasizing that temporary timed backup files are stored in the backup folder named in Tools, Settings, Files — not in the folder that contains the document being edited. ¤ Length of time delay: As previously mentioned, you probably should not set the time delay to less than 5 minutes. (Ten minutes is the program default, but this is only a suggestion.) ■ What happens next to the temporary file depends on how the document and/or the program is closed:
Note the following information about abnormal program terminations and the temporary timed document backup files.
¤ If you do not
delete the temporary timed document backup or rename it or save it
under a different name (see the buttons on the Timed Backup message above), you might get a message in the next few minutes
when WordPerfect attempts to back up the timed back up file itself. If
you try to delete the file, you might get another message saying you "...do not have
the rights..." to
do this. Close the open timed back up file and things should return to
normal.
¤ After an abnormal termination, if you see the message about a backup file existing and you open it (as explained above) to save or delete it, and you still get a message the next time you open WordPerfect (something like, "..To save the backup file please open or rename it..."), it is possible the timed backup folder was corrupted, too. Here's a tip from Wolfgang Deiminger on the Corel WP12 newsgroup: "Find the
location of the [timed] backup folder (in WP, do Tools, Settings,
Files, Document Tab, ["Backup folder:"]. Then, with WP closed, use Windows
[File] Explorer to delete the folder and create it again. This should sort
things out."
¤ If you receive a message that the temporary timed backup file exists — e.g., "Document 0 backup file exists..." — and even after you renamed or deleted it you still get the message that this temporary files exists, here are some tips that should help: • "... [Close
WordPerfect.] Use Windows Explorer [or File Explorer in recent Windows versions] to [1] browse to the
specified timed backup folder shown in Tools, Settings,
Files, Document tab, 'Backup folder' and [2] delete the file
wp{wp}.bk! as well as any other wp{wp}.*.* files in that folder [they are temporary files anyway].
What probably happened is that you opened a backup file such as wp{wp}.bk2 and then saved it without changing its filename. This can create the wp{wp}.bk! file -- and WordPerfect translates that file's name to wp{wp}.bk0 in the message." [- After a tip from Charles Rossiter, Corel C_Tech] [This tip was also in an old Corel support database article (754080 and 3565), which
indicated you should "Delete all files whose name begins with 'wp' in
this folder [i.e., in Tools, Settings, Files, Document tab, 'Backup folder']."]
• Similarly, and especially if you feel uncomfortable about deleting files that you believe could be important to you, you can exit WordPerfect and rename that Backup folder on your disk (using Windows Explorer or similar file manager). This will force WordPerfect to create a new, empty folder in the same location the next time WordPerfect is started. [Renaming the old folder should preserve its contents in the event you should ever need them (which is unlikely for most users).] What happens if you close the document without deliberately saving it — and ignore (or answer "No" to) the message that appears that asks if you want to save the changes you have made to the document? This is not
considered an abnormal termination of
the program as explained above, so the temporary timed backup
file(s) will be automatically and immediately deleted (see Situation A above).
WordPerfect naturally assumes you want to discard your changes if you ignore or answer 'No' to the on-screen message. If you have accidentally lost work because you failed to save your work when WordPerfect asks if you want to do so, you might consider using a macro or a third party program to help you save your work more frequently as you edit your documents. See the last section on this page. Note:Can the timed document backup be used to recover accidentally deleted material from the active document? The short answer is
"maybe".
Let's take an
example where a system crash is not involved, and
see what happens while you edit files on screen and then delete some
important material. You might have done this by using File, Close (and
then answered "No"), or by exiting WordPerfect without saving your
work. (Tip:
If you selected some material and hit the <Delete> key,
the best thing to do is use Edit, Undo as soon as possible.)
If you have previously enabled the timed document backup option, any material in the actively edited file, or any other loaded file where a change has been made, is temporarily saved to disk (after the selected time delay) in a file named something like wp{wp}.bk1, in the backup folder specified in Tools, Settings, Files. As mentioned, this protects against a power failure or crash. It does not save you from yourself. If you close a file without saving it, or delete so much material that you exceed your personal settings in Edit, Undo/Redo History, Options, you might not be able to recover all material. This temporary timed document backup file would exist only until you close the edited file or exit the program, whereupon it is automatically deleted. However ...
if you
have deleted a lot of material in the currently open file, you might
be able to recover it if you are lucky enough to be able to open the
backup file before the next timed backup overwrites it. [The file being
edited must still be open in WordPerfect, or else WordPerfect will
immediately delete
the wp{wp}.bkn file (where n = a number).] Try navigating to
your WordPerfect temporary
backup folder [shown in Tools, Settings, Files, Document tab,
Backup folder] with Windows Explorer or other file manager,
and copy the temporary wp{wp}.bkn file to another folder, where it can
be renamed to a more normal name.
Notes:
¤ Recovery of
any material from a deleted wp{wp}.bkn file (where n = a number) might
be possible with a separate file recovery program (such as UndeletePlus
[not reviewed by this author]) if
recovery procedures are instituted before anything else is written to
disk. If the file can be recovered it should be moved to another folder and renamed.
Obviously, the best approach is to avoid getting into a situation where you need to take such measures. ¤ If you keep getting an error message, "The specific backup folder no longer exists," try this (originally from Answer ID 754208, an old Corel Knowledgebase article): "... This error
message is usually caused if WordPerfect can no longer write to the
backup folder or the folder has become damaged in some way.
The easiest solution to this problem is to reboot your computer and try WordPerfect® again. If problems persist, rename the location of the backup directory. To do this, follow the instructions listed below: (1) Go up to the Tools menu and select Settings. (2) Click on the Files button and select the Document tab. (3) Type 'C:\Backup' ( without the quotes ) in the Backup Folder box. (4) Click on Ok. Click Yes to create the directory if [you are] prompted. [N.B.: On some systems you might need to first create an actual folder of that name and location on disk with Windows Explorer.] ... To prevent this problem from occuring in the future, ensure that your virus scanner is NOT checking the WordPerfect backup file directory." ■ Option 2 - "Save original document as a backup at each save" Purpose The
second (checkbox) feature works as you might expect:
WordPerfect's Help
says that this optional feature "guards against accidentally replacing a file
that you did not intend to replace," and this might be valuable to you.
If so, check (tick) the box to enable this feature.
When enabled (check box ticked), each time you save the active ("working") document to disk (after the initial save) the feature creates another file using the original filename — but with a .BK! extension rather than a .wpd extension. N.B.:
This 3-character filename extension is the same for all backup files made with this method, but notice the use of an exclamation mark (!). This differs from the timed backup method above, which uses a number as the last character in the filename extension. This backup file will be located in the same folder as the original file, as explained in the Notes below. This makes it easier to locate and also prevents any same-named file in another folder from overwriting it when that other file is saved. Hence, if you have saved the active document at least once (after the initial save) you will always have at least one backup of that document. It's worth emphasizing here that Option 2 — if enabled — creates just one backup file of your working document after the initial save of that document, no matter how many times you save your working document. That is, the same backup file (<filename>.BK!) is simply updated (overwritten) during each additional save of that working document. Option 2 does not create multiple separate backups. Also see some important notes about this optional backup file method below. Tip: If
your work is important enough to guard against accidents (including
premature saves, accidental file deletion, or document corruption) then
you might consider using some sort of file versioning which produces
multiple separate backups (a.k.a., iterations) with slightly different names. See some of these other
methods in "The best method" section below.
Note: If you noticed that this option was left disabled (unchecked) in the dialog image above it's
because this author uses file versioning for important work, so
enabling this option would result in extra file copies. But since
it can be turned On/Off as needed (e.g., see Footnote 1) you might prefer to enable it.
[Page Top]
Important notes about Option 2 ¤ The "Save original document" backup file is placed
in the same Windows folder as the original.
Filename extensions will be different
That is, after the first save the current document (e.g., MyFile.wpd) will have a
similarly named backup but with the filename extension .BK! (e.g., MyFile.BK!) in the same folder.
[Notice this filename extension is somewhat similar to the ones used with the timed
backup option but instead of a number at the end of the extension the
program uses an exclamation mark (!). This similarity has at times
caused confusion when asking for help on support sites, so be sure
which type of backup file you are referencing in such situations.]
Why this is done Making the .BK! backup in the same folder as the original prevents the possibility of a file
being backed up to a common "backup folder" and accidentally overwriting a
backup from a different file (located in another folder) that might
have the same root filename. (If you want a backup to go somewhere
else, see the SaveCopy
macro.)
Small downside: an impact on disk space Be aware that with
this option enabled you will decrease available disk space because all
your WordPerfect files saved to disk (after the first save) will have a
corresponding backup file from that point onward.
But with today's large hard drives this should not be much of an issue. But it's your choice. However, if you delete the original file you probably will want to delete its backup file, too.
Important Making backups to the same folder as the one containing the original
document is better than not making any backups — but a disk crash or
accidental deletion of files or folders can mean you would lose both the original and the backup.
Hence, be sure to make backups of important files to another physical internal disk drive (not merely a partition on the same drive) or better yet, to an external drive, flash drive, etc. See the next section for some alternatives (such as the SAVECOPY macro, third party utilities, etc.). ¤ The backup file (.BK!) needs to be closed for it to serve as a backup. If you are editing the original and comparing it to the backup, remember to close the backup before saving the original again.
¤ If you need to use the backup file (.BK!) as a new working document (e.g., to revert back to that earlier backed up version) you can simply save it with a .wpd extension. (Or better yet, save it with a new filename and .wpd extension.) ¤ If you cannot find the backup file(s) or distinguish the backup file(s) in the same folder from the original file(s), you might be a "victim" of Windows default settings, which typically hides certain filename extensions. See Footnote 2 below. ¤ If you think your current work needs to be backed up more frequently than whenever you happen to remember to do it, or you want to make interim versions of your work, see the next section. [Page Top]
■ The best method: Save your work to disk frequently, and make multiple backups with different file names as insurance against data loss ☼ In general, a WordPerfect document must be saved to disk before any recovery is possible. • If you have enabled the timed document backup feature (above) the system must have crashed (thus leaving a temporary
backup on disk), since until that document is physically saved * the material exists only in
the computer's memory or in a temporary file located on disk.
[... unless, of
course, you get lucky and can quickly recover the material from the temporary
.bk# file with a text editor or viewer or even by opening the .bk# file
in WordPerfect. Note that WordPerfect must remain open to do this. If
you close it, WordPerfect will delete the timed backup file. *]
• Enabling the second option (under Tools, Settings, Files), "Save original document as a backup at each save" (discussed above) is one way to make reliable automatic backups of your WordPerfect files. However, as noted, this makes only one backup of the current document. • Important: It is worth repeating that neither of these two features will protect you from making the mistake of closing a file and not deliberately saving any recent changes you might have made (with File, Save or with File, Save As, or perhaps with a macro) since the last manual or automatic save. Those changes will be lost since the program is simply following your instructions. ----- * If you open a timed backup file from the Timed Backup dialog or by navigating to the file in the backup folder, be sure to save it with File, Save As so that it is renamed. See above for more on this topic. ☼ Other methods exist to prevent — or at least minimize — the possibility of losing data due to "operator error" and which can make multiple backups or versions of the current document or simply automate the save process. For example:
• You could use a macro to make (semi-)automatic backups.
- The "save as you type"
methods there
do not depend on the user remembering to save a file
periodically. For example, they can save immediately after the user
presses the period (full stop) key or the Enter key at the end of a
line, sentence or paragraph.
- The NewFN# macro in that MultiSav suite can help automate the creation of sequentially numbered backups (MyBook001.wpd, MyBook002.wpd, etc.). These backup files (like the automatic backup feature above) are saved in the same
folder as the previously edited/saved version of the file. Thus your
"active" version will generally be the one with the highest numbered
filename.
Tip: Starting with WordPerfect X7 a new Corel-included macro does something similar to NewFN#. You can play it with Tools, Macro, Play; then type the macro name, "Numbered save," in the Play Macro window. [You might want to compare the features and operation of both macros and use the one best suited to your needs.] □ SAVECOPY
(in the Library) is a macro that makes a copy on another drive or partition when you save
the file. The copy serves as a backup, and if it's on another physical
drive, it will be much more immune to disk problems.
□ SAVE AND COPY WITH DATE AND TIME in the filename. This macro is shown in Footnote 4. • There are many commercial third-party programs that make automatic backups of any saved file that meets your specifications. Such programs allow you to
include/exclude files from the backup, and can back up to a variety of
locations, including other physical drives/media.
The latter is the "gold standard" of backing up important files since a disk crash can wipe out both original files and any locally stored backups of them at the same time. Examples
Be sure to thoroughly test any such program to ensure it works as you expect — especially if you rely on its automatic operations. Trial versions are usually available. Some paid versions might offer more features. [Note: Some information below might not be up to date or accurate. No relation between the WPToolbox and any company.] □ Backup4all can automate the process of backing up to local or external drives (even to the cloud) and even ZIP the at the same time (with optional encryption). It can selectively restore previous versions of important files, too. □ SecondCopy from Centered Systems backs up (or optionally synchronizes) saved files — one copy of each, optionally compressed into a password-protected, standard ZIP file; it can also automatically move/store multiple older copies ("versioning") in a separate archive. Backups can be made on a user-defined time schedule or when files change. □ SyncBackSE from 2BrightSparks. Very powerful and flexible, lots of options, excellent contextual help, and ideal for geeks like me (I use it daily). You can mirror, backup, synchronize, or restore folders and files to local or remote storage. Easy and Expert modes. It can compress and encrypt your backups, and it can do "versioning" of backup files, too. (Four editions available: Free, Lite, SE, and Pro. Compare here.) • Windows Vista/7/8/10 users can take advantage of the Restore Previous Versions feature that is built into these operating systems. Note that this feature only saves files until the space reserved for them gets filled up. Also,
they are saved on the same drive as Windows, so they aren't very good
as permanent backups on another physical drive. (Drive crashes do
happen.) But for recently deleted or altered files the feature can be
useful.
• Windows 8/10: These versions also have a File History
feature you can use to restore files (if that feature is enabled).
Search "Windows File History," "Restore files or folders using File History," or similar, on the Internet or
in the Windows program.
☼ I have not found a WordPerfect technique or a separate word processing program that permanently saves the current on screen material to disk without some kind of user intervention. All such "permanent save" methods depend on the user making a
deliberate File > Save (or File > Save As), at least once. Then macros
or programs such as those listed above can make one or more multiple or
sequential backups of the original.
There's an old saying: If you make backups you probably won't need them — and the reverse is also true. To which I would add: Make sure they are not kept on the same computer. [Page Top] |
|||
|
Footnote 1 [Continued from above...] In addition to manually opening the File Settings dialog (Tools, Settings, Files) to enable or disable these options, there are macro commands
available to toggle these backup features on and off. [Tips: To copy any of these code snippets into your WordPerfect program to create a working macro, see here. To make them easy and quick to play see here.] For the "Timed
document backup..." feature - To simply turn it On or Off use either - For the "Save
original
document..." feature, use either -
BackupOriginalDoc(On!)
PrefSave() -or-
BackupOriginalDoc(Off!) PrefSave() BackupOriginalDoc(On!) PrefSave()
Prompt ("Save Original Document = ON"; "(Tools>Settings>File Settings:)" +NToC(0F90Ah)+ "Automatic creation of 1 backup copy of every saved file is now ON"; NoButtons! | InformationIcon!) Wait(40) // Wait 4.0 seconds before destroying prompt EndPrompt() -or-
BackupOriginalDoc(Off!) PrefSave() Prompt ("Save Original Document = OFF"; "(Tools>Settings>File Settings:)" +NToC(0F90Ah)+ "Automatic creation of 1 backup copy of every saved file is now OFF"; NoButtons! | ExclamationPoint!) Wait(40) // Wait 4.0 seconds before destroying prompt EndPrompt() Footnote 2 [Continued from above...] Can't distinguish your backup files from the originals? That is, with backup files with names like filename.BK! as explained above under "Save original document as a backup at each save"? If so, it might be due to certain Windows out-of-the-box (i.e., default) settings that probably were meant to help make Windows more user-friendly or to prevent users from deleting important computer files. Here's how to change those settings. Windows 10/8/7: You can follow the same method as the one used to "un-hide" your WordPerfect default template file (.WPT) described on the Toolbox site here. It shows how to quickly display a Windows File Explorer Options dialog and use its Search tab to change these two settings: Footnote 3 [Continued from above...] Why does the program use strange names for its temporary timed backup files? Here is a copy of a post on WordPerfect Universe thread (here) that gives my take of this issue. "... After a crash (e.g., due to a power failure) is there a way to have the program recover (or identify) all timed backup files that were created before the crash by user-created filenames based on the original filename of the document that was still open when the crash occurred -- and not by program-created filenames composed of a string of somewhat random characters?
I have some observations to offer. 1. Why it probably wouldn't always work: As noted in [another WordPerfect Universe post here] any newly opened documents (e.g., temporarily named Document1 through Document9) that have not yet been saved will not have a user-created filename. Hence, a program-created temporary filename, separately generated periodically by the program's automatic timed backup feature (if enabled), seems to be the only reasonable way (or only possible way) to name a "recovery" file for this type of document. 2. Why it probably doesn't matter: There seems to be little reason for the program not to use the same recovery filename method for other open files -- i.e., files you previously saved and therefore were named by you -- that were also open and changed before the crash. Using different methods to name timed backup files after a crash, even if possible, might do more harm than good. (Coders are aware that when you add something to a very complex program you can often break something.) 3. Why the method almost certainly won't be changed: If #1 and #2 are true, then I cannot imagine why Corel would devote any time and resources to develop a different open-and-changed document recovery system -- especially since crashes are, for most people, rare events. I cannot think of any method that will deal effectively with the type of file described in #1. [Even Roy's helpful macro (here) does not deal with such unnamed files -- again, since they were not saved they won't have user-created filenames -- and which might contain a lot of important material.] 4. What can you do? When you reload WordPerfect after a crash and see the Timed Backup message, I have found that immediately opening the recovered temporary documents after a crash in order to examine them is superior to blindly renaming them or blindly deleting them. Let's face it: If you had a crash you probably have lost some work that was only in memory and not save to disk. But why not try to recover some (maybe most) of it as a priority task? To me, the best way is to do it as soon as possible by opening the temporary recovery file and, if it's important, saving it with a new name (thereby renaming the temporary file) or at least copying material from it before you delete it. (Note the emphasis: Do not save it using its program-generated filename or you'll probably be treated to repeated "Document 0 backup file exists..." messages [as explained above].) 5. BEST SOLUTION: Frequent user-created backups. If a document is important, it's important enough to be saved often. Macros can help you automate periodic saving to disk, such as those described [above])." Footnote 4 [Continued from above...] NOTE:
The following Save and copy with date and time.wcm is a macro in un-compiled plain-text format. This was done for those who might like to examine some of the techniques, and/or modify its function. However, you will need to copy it into your WordPerfect and save it as a macro in order to play it. For help with that see here. When played on the current (open) file, this macro - [1] saves the current file (the "original") to update it, and then
[2] makes a new copy of that file with the current (system) date and time (in all numbers) added to the file's name. This ensures each backup of the original file has a unique name in that folder. For example, a backup might become named like this - C:\Users\<NAME>\Documents\MyFile 23-07-26-153045.wpd
- where "23-07-26" is the current date and the "153045" is the current time as Hour:Minute:Second (here, 3:30:45 P.M.) Note: The format of the date and time can be easily changed. See macro help with these PerfectScript commands: DateString and TimeString. Related features ¤ The original file (here, "MyFile.wpd") is retained as a separate file — the same as is done when you use the WordPerfect automatic "Save original document..." feature above.
[Side note: Both of these methods differ from the NewFN# macro above, which simply saves the original (into the same folder) with a newly numbered suffix in the file's name (e.g., MyFile003.wpd). Hence, with NewFN# each saved version instantly becomes the "original".]
¤ However, unlike the program's automatic backup method, which automatically creates a single backup for each saved file, Save and copy with date and time.wcm can create multiple backup versions of the original document (assuming the original document changes between each play of the macro). But like the program's backup feature, all backup copies made with this macro will reside adjacent to the source file in the same folder. (It could be coded to place them in another location but this is a complication best left to the user.) ¤ Each backup made by the macro on the same file will show a different "time stamp" — down to the second the macro executed its commands — so you could make any number of backups of that file with the macro, even within a few seconds of each other. Tips ☼ The easiest way to use this macro is by assigning it to a toolbar button or keyboard shortcut. See here for more.
☼ You can still use File>Save or Ctrl+S as often as you like without making this special type of backup copy. But be aware the macro also makes a FileSave just before it creates the backup copy, to keep the copy up to date. // Macro code begins // Save and copy with date and time.wcm // PURPOSE: Saves the open file and makes an immediate copy // in the same folder with the current date (YY/MM/DD) and time // (Hour+minute+second) appended to the file's name. // This ensures that such files will retain their existing file name -- // but be unique due to a date and time "stamp" that is now part of // their filename. // NOTE that the format of the date/times can be changed: See // macro help for DateString and TimeString. // First check if the current file has a name; if not pop a message - IF (?Name="") Messagebox (;"Save and copy with date and time.wcm"; "Oops! This file is not yet NAMED - it must be SAVED first") QUIT ENDIF // Set up some variables - vDate:=" "+"yy-MM-dd" // format: <space> 2digitYR-2digitMON-2digitDAY vTime:="-"+"HHmmss" // format: <hyphen> (24)HourMinuteSecond d:= DateString (; Custom!; vDate ) t:= TimeString (; Format: vTime ) // Get the current filename, path, and extension and store them - vCurrentFile:=?Name // Store the current file's name (without the path) vPath:=?Path // Store the current path (without the filename) // Store current path and filename (i.e., the absolute path) - vCurrentFilePathName := ?Path+?Name // Break apart the current file's name and extension (if any) - // First - look for the last period (i.e., filename has an extension) - vPos:=StrScan (vCurrentFile; -1; EqualTo!; ".") IF (vPos=0) // If there's no period (vPos = 0) in the filename... vNamePart:=vCurrentFile // ... store the current name... ELSE // ...otherwise, break apart the file's name and store each part - vNamePart:=SubStr(vCurrentFile;1;vPos-1) vExtPart:=SubStr(vCurrentFile;vPos+1;StrLen(vCurrentFile)-vPos) ENDIF // For the ("backup") copy, add the current (system) Date and Time // after the name part - IF (vPos <> 0) // i.e., filename has a current extension vBackupFile = vPath + vNamePart + d + t + "." + vExtPart ELSE // filename has no current extension vBackupFile = vPath + vNamePart + d + t ENDIF // First, save the current (open) file ... FileSave (vCurrentFilePathName) // ... then optionally allow time for the file to be saved before copying it - Wait (10) // (i.e., 1 second) // ... then make a uniquely named copy with current date and time added, // in the same folder (note that both variables must contain absolute path // names) - CopyFile (vCurrentFilePathName; vBackupFile) Quit // Macro code ends Footnote 4 [Not currently used] [Page Top] |
|||