;Recovery script SAMPLE -- DO NOT RUN WITHOUT modifications
;
;Update the DFSee commands to match the situation, remove 'rem' where needed
;remove the following two lines when modifications are done
confirm DO NOT RUN this script!  It is just a demo SAMPLE!~~Use <Esc> until script has stopped!
disk 99
;
;Recovery script, recover NTFS bootsector for selected partition on selected disk
; ~ no-parameters when run with script-file-dialog prompting~
;
;To recover real disk: DFSxxx.EXE run recfixb
;
;;defaultparam 1 disk
;;defaultparam 2 1
;;defaultparam 3 1
;;defaultparam 4 NTFS
;
log $0 ;same as scriptname
about -P-
;
;Since disk-numbers may change (for removables) allow changing it ...
;;setparam 2 ? Specify the disk-number for the disk with the $4 bootsector to be fixed on relative partition $3
;
confirm Recovery will work on $1 $2~~It will recover a $4 bootsector on partition $3~~Press a key to start the recovery now
;
fdisk $1 $2                             ;select the correct disk
;
; show begin situation
;
part -m -n -e -d
part -d
;
;settype $3,r *  07                       ;change type to 07
part  $3,r                                ;re-select the partition
;;error ignore
fs  $4                                    ;force $4 mode
fixboot -s                                ;fix the bootsector
;
; show result
;
part -m -n -e -d
part -d
;
log             ;close logfile
;
confirm Recovery completed, press a key to exit the DFSee program ...
q
