This
Example copies first partition(PI=1) of first found harddisk(0x80) to
a Imagefile ([DESTHD1] DRIVE=0xa0) with compare
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini] [/imgf
<Imagefilename.000>]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /imgf x:\my_Image.000
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
INFO=0x0
COPY=0x1
BACKUP=0x0
RESTORE=0x0
COMPARE=0x1
ERASE=0x0
NOUSERINPUT=0x0
SHIELD=0x0
[SOURCEHD]
DRIVE=0x80
PI=1
PXI=0
[DESTHD1]
DRIVE=0xa0
;[DESTHD2] //Version Multi Clone only
;DRIVE=
;[DESTHD3] //Version Multi Clone only
;DRIVE=
;[DESTHD4] //Version Multi Clone only
;DRIVE=
|
|
Copy
several partitions at once!
Example disk has one primary partition drive C: and one extended
partition containing drive D: E: F:
C: starts at begin of disk
D: starts after C:
E: starts after D:
F: starts after E:
According to the Powercopy syntax
C: is PI=1 PXI=0
D: is PI=2 PXI=1
E: is PI=2 PXI=2
F: is PI=2 PXI=3
To copy e.g. up to
the end of the D: drive
you have to set 1:1 copy mode by Copy=2 and setup to the end of
D: by PI=2
and PXI=1
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if
option set
pc(32).exe /hdfunctions [scriptfilename.ini]
[/imgf <Imagefilename.000>]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /imgf
x:\my_Image.000
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
COPY=0x2
[SOURCEHD]
DRIVE=0x80
PI=2
PXI=1
[DESTHD1]
DRIVE=0xa0
|
|
|
This
Example copies 3nd logical drive of an extended partition(PI=2 PXI=3)
of second harddisk(0x81) to a Imagefile ([DESTHD1] DRIVE=0xa0)
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
COPY=0x1
COMPARE=0x0
NOUSERINPUT=0x0
[SOURCEHD]
DRIVE=0x81
PI=2
; extended partition resides on second entry PI=2 inside MBR
PXI=3
; third logical drive shal be hadled
[DESTHD1]
DRIVE=0xa0
;[DESTHD2] //Version Multi Clone only
;DRIVE=
;[DESTHD3] //Version Multi Clone only
;DRIVE=
;[DESTHD4] //Version Multi Clone only
;DRIVE= |
|
This
example erases entire content on second hard disk(0x81) with no user interaction
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
ERASE=0x1
NOUSERINPUT=0x1
[SOURCEHD]
DRIVE=0x81
|
|
EXAMPLE job file to ERASE the first
sector of a disk( MBR):
Old Syntax:
This example erases the master boot record (first sector only
/maxhdcpy 1) on second hard disk
/maxhdcpy specifies the amount of sectors to handle
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if
option set
pc(32).exe /hdfunctions [scriptfilename.ini]
/maxhdcpy 1
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /maxhdcpy
1
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
ERASE=0x1
NOUSERINPUT=0x1
[SOURCEHD]
DRIVE=0x81 |
|
At Powercopy from V2.1 and above use this syntax:
ERASE=
;
0x2|0x3|0x4|0x5|0x6 requires
Powercopy >= Version 2.1Rk
;
0x1 Clear but ask user
;
0x2 KILLMBRONLY; Erase sector 0
;
0x3 FIRST20MB;
;
0x4 ENTIREHD;
;
0x5 PREPAREFORBACKUP;
;
0x6 REMOVE one PARTition ENTRY inside MBR(Sector0);
;
Partition MBR Index PI=1..4 can be cleared; PXI=is not supported,
;
therefore a single logical drive entry cannot be removed.
;
If PI refers to an extended Partition all logical drives will no more
be
;
visible.
;
0x7 PARTITION CONTENT; CLEAR ENTIRE Content of a Partition
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI
; PC_HDCPY.INI
or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
ERASE=0x2
NOUSERINPUT=0x0
; set no user input to 1 after you tested
your script
[SOURCEHD]
DRIVE=0x81
|
|
This
example erases the entire content of an extended partition(stored at second
partition entry) on first hard disk(0x80)
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
ERASE=0x1
[SOURCEHD]
DRIVE=0x80
PI=2
PXI=0 |
|
This
example erases the entire content of fourth(PXI=4) logical drive inside
an extended partition(stored at second partition entry) on first hard
disk(0x80)
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
ERASE=0x1
[SOURCEHD]
DRIVE=0x80
PI=2
PXI=4 |
|
This
example copies an image( x:\D80P1IMG.000; [SOURCEHD] DRIVE=0xa0) of a
partition to first partition(PI=1) on first hard disk(DRIVE=0x80) with
compare and make partition active(PACT=1)
Partition entry 1 must be free on this drive! Otherwise you have
to clear this entry before
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /imgf
x:\D80P1IMG.000
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
COPY=0x1
COMPARE=0x1
[SOURCEHD]
DRIVE=0xa0
[DESTHD1]
DRIVE=0x80
PI=1
PXI=0
PACT=1
|
|
This
example restores an full disk image
or image of a partition( x:\SOME_IMG.000; [SOURCEHD] DRIVE=0xa0) on first
hard disk(DRIVE=0x80) to the original location(PARTLOC=0x4)!
PARTLOC=0x4 defines that the image is restored to the original position
on disk.
This feature is possible, because a Powercopy image-file contains this
information.
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /imgf
x:\SOME_IMG.000
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
COPY=0x1
[SOURCEHD]
DRIVE=0xa0
[DESTHD1]
DRIVE=0x80
PARTLOC=4
|
|
This
example restores an image( x:\D80P1IMG.000; [SOURCEHD] DRIVE=0xa0) of
a partition to 4th primary partition location(PI=4) and to the end(PARTLOC=2)
of second harddisk with compare(COMPARE=0x1)
Partition entry 4 must be free on this drive! Otherwise you have
to clear this entry before
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /imgf
x:\D80P1IMG.000
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
COPY=0x1
COMPARE=0x1
[SOURCEHD]
DRIVE=0xa0
[DESTHD1]
DRIVE=0x81
PI=4
PXI=0
PARTLOC=2 |
|
This
example "washes" logical drive "E:\"
requires higher or equal Version 2.1Rk
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini] /w
<DriveLetterToWash>:\washdisk.000
IMPORTANT! |
Argument /W has to be specified
A-F-T-E-R argument /hdfunctions !
You have to specify parameter /hdfunctions even if no
parameter was set inside PC_HDCPY.INI |
To ensure no file overwrite dialog
appears you should add a delete command line before washing
any disk in batch mode
del E:\washdisk.*
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI /w
E:\washdisk.000
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
NOUSERINPUT= 0x0
; 0x0 User has to confirm some critical dialogs
; 0x1 no user confirmation dialogs are
; displayed! Default values will be used
; instead! |
|
This
example swaps/toggles/set/remove shield state of first harddisk(0x80)
Example HDCOPYCFGFILE PC_HDCPY.INI
[] optional <> required if option
set
pc(32).exe /hdfunctions [scriptfilename.ini]
e.g. pc(32).exe /hdfunctions PC_HDCPY.INI
Example ini files are available at bootcd search for '80off.ini'
Please note! The new unshield/shield status is recognized by an operating
system AFTER you have rebooted your system.
;
PC_HDCPY.INI or PC_HDCPY.job file content
; for example above
[HDTASKFLAGS]
SHIELD=0x1
; 0x0 disabled
; 0x1 swap/toggle
; 0x2 enable shield
; 0x3 disable shield
NOUSERINPUT=0x1
[SOURCEHD]
DRIVE=0x81 |
|