Top Navigational Bar

Copying Files and Subdirectories - XCOPY
DocumentID: 641652
Revision Date: 29-Feb-96 8:18:38 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: A customer who was upgrading from WordPerfect 5.0 to 5.1 had a complex document directory structure under his WP50 directory. He wanted to move these files under the WP51 directory.

The DOS XCOPY command can accomplish this relatively easily. The customer must be running DOS 3.2 or above. This process will not copy personal files in the main WordPerfect program directory, just ones already organized into subdirectories.

Assuming a standard installation of WP 5.0 (to the C:\WP50
directory):

1. ATTRIB +A C:\WP50\*.* /S
This will set to on the archive bit in every file in the WordPerfect directory *and all its subdirectories*.

2. ATTRIB -A C:\WP50\*.*
This will turn off the archive bit in every file in the program directory *only*.

3. ATTRIB -A C:\WP50\LEARN\*.*
This will turn off the archive bit in the tutor directory. You should check for the existence of other program subdirectories (such as WP50\PRINTER, WP50\SPELL, etc.) and put them through the same process, if they exist.

At this point, the archive bit has been set to on for each document directory, and to off for each program directory.

4. XCOPY C:\WP50\*.* C:\WP51 /S /V /A [/P]
If a WP51 directory does not already exist, the user will be asked if WP51 is a (F)ile or (D)irectory, and the user should answer D. This will copy the entire subdirectory structure with files intact under the WP51 directory. /S includes the subdirectories. /V turns copy verify on. /A copies only those files with archive bits set to on. /P, if desired, will prompt the user yes or no file by file to copy.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.