home *** CD-ROM | disk | FTP | other *** search
- // PartitionMagic Script File
-
- // This script file is an example of the Copy script command.
-
- // Scenario:
- // An 8 GB disk contains four partitions: A 1 GB "Win 95" partition, a 3 GB
- // "Apps" partition, a 1 GB hidden "Win NT" partition, and a 3 GB "Data"
- // partition.
- //
- // The user has inadvertantly created the "Win NT" partition beyond the 4 GB
- // boot boundary for this operating system. The user wishes to copy the "Data"
- // partition to a second disk, copy the "Apps" partition to the end of the
- // first disk and move the hidden "Win NT" partition to be next to the
- // "Win 95" partition so the user can boot the operating system on the
- // "Win NT" partition. The original "Apps" and "Data" partitions should be
- // deleted and the "Win NT" partition resized to fill the unallocated space.
-
- // Select the "Data" partition to be copied to disk 2
- Select Partition "Data"
-
- // Select the unallocated space where the partition is to be copied
- Select Destination Disk 2
- Select Destination Unallocated Largest
-
- // Copy the partition
- Copy
-
- // Delete the original "Data" partition which is still the selected partition
- Select Partition "Data"
- Delete "Data"
-
- // Copy the "Apps" partition to the end of disk 1
- Select Partition "Apps"
- Select Unallocated Last
- Copy
-
- // Delete the original "Apps" partition which is still the selected partition
- Select Partition "Apps"
- Delete "Apps"
-
- // Move the "Win NT" partition next to the "Win 95" partition
- Select Partition "Win NT"
- Move Left Max
-
- // Resize the "Win NT" to use the unallocated space
- Resize Max
-