;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, recreate several subdir entries in FAT32 ROOT directory
; ~ no-parameters when run with script-file-dialog prompting~
;
;To recover real disk: DFSxxx.EXE run rfatroot
;
;;defaultparam 1 disk
;;defaultparam 2 1
;
log $0 ;same as scriptname
about -P-
;
confirm Recovery will work on $1 $2~Recreate several subdir entries in FAT32 ROOT~~Press a key to start the recovery now
;
fdisk $1 $2
;
; show begin situation
;
part -m -n -e -d
;
part 1,r                ;select 1st partition on disk
0
d                       ;display current ROOT contents
;
batch on
H 006FFC                ;display first sector in HEX
edit -p:0x020  -h:"48 50 20 20 20 20 20 20  20 20 20 10 00 9c 71 50" ; HP         ...qP
edit -p:0x030  -h:"4a 32 4a 32 04 00 72 50  4a 32 c1 9d 00 00 00 00" ; Cluster:00049DC1
edit -p:0x0a0  -h:"41 5f 00 52 00 65 00 73  00 74 00 0f 00 1b 6f 00" ; A_.R.e.s.t....o.
edit -p:0x0b0  -h:"72 00 65 00 00 00 ff ff  ff ff 00 00 ff ff ff ff" ; r.e.............
edit -p:0x0c0  -h:"5f 52 45 53 54 4f 52 45  20 20 20 10 00 c5 73 50" ; _RESTORE   ...sP
edit -p:0x0d0  -h:"4a 32 4a 32 04 00 74 50  4a 32 f7 db 00 00 00 00" ; Cluster:0004DBF7
edit -p:0x0e0  -h:"41 4d 00 6f 00 64 00 65  00 6d 00 0f 00 ac 00 00" ; AM.o.d.e.m......
edit -p:0x0f0  -h:"ff ff ff ff ff ff ff ff  ff ff 00 00 ff ff ff ff" ; ................
edit -p:0x100  -h:"4d 4f 44 45 4d 20 20 20  20 20 20 10 00 33 76 50" ; MODEM      ..3vP
edit -p:0x110  -h:"4a 32 4a 32 04 00 77 50  4a 32 f8 db 00 00 00 00" ; Cluster:0004DBF8
edit -p:0x120  -h:"41 4d 00 75 00 73 00 74  00 65 00 0f 00 9e 6b 00" ; AM.u.s.t.e....k.
edit -p:0x130  -h:"00 00 ff ff ff ff ff ff  ff ff 00 00 ff ff ff ff" ; ................
edit -p:0x140  -h:"4d 55 53 54 45 4b 20 20  20 20 20 10 00 9f 7a 50" ; MUSTEK     ...zP
edit -p:0x150  -h:"4a 32 4a 32 04 00 7b 50  4a 32 ff db 00 00 00 00" ; Cluster:0004DBFF
edit -p:0x160  -h:"4d 50 33 20 20 20 20 20  20 20 20 10 00 4a 7c 50" ; MP3        ..J|P
edit -p:0x170  -h:"4a 32 4a 32 07 00 7d 50  4a 32 5a 21 00 00 00 00" ; Cluster:0007215A
edit -p:0x180  -h:"41 4d 00 79 00 20 00 44  00 6f 00 0f 00 d7 63 00" ; AM.y. .D.o....c.
edit -p:0x190  -h:"75 00 6d 00 65 00 6e 00  74 00 00 00 73 00 00 00" ; u.m.e.n.t...s...
edit -p:0x1a0  -h:"4d 59 44 4f 43 55 7e 31  20 20 20 10 00 54 83 50" ; MYDOCU~1   ..T.P
edit -p:0x1b0  -h:"4a 32 4a 32 07 00 84 50  4a 32 5b 21 00 00 00 00" ; Cluster:0007215B
edit -p:0x1c0  -h:"41 50 00 72 00 6f 00 67  00 72 00 0f 00 20 61 00" ; AP.r.o.g.r... a.
edit -p:0x1d0  -h:"6d 00 20 00 46 00 69 00  6c 00 00 00 65 00 73 00" ; m. .F.i.l...e.s.
edit -p:0x1e0  -h:"50 52 4f 47 52 41 7e 31  20 20 20 10 00 85 8a 50" ; PROGRA~1   ....P
edit -p:0x1f0  -h:"4a 32 4a 32 07 00 8b 50  4a 32 5c 21 00 00 00 00" ; Cluster:0007215C
;
batch off
;
say re-display ROOT directory
0
d
log
;
confirm Recovery completed, press a key to exit the DFSee program ...
q
