my own DOS critical handler from prehistoric times..
Posted by CommunityHairy6695@reddit | vintagecomputing | View on Reddit | 5 comments
Posted by CommunityHairy6695@reddit | vintagecomputing | View on Reddit | 5 comments
MichalNemecek@reddit
I like your prompt
CommunityHairy6695@reddit (OP)
PROMPT=$e[1;33m[$e[31m$p$e[33m]$_$e[31m$g$e[0;32m
works if ANSI.SYS installed.
H_M_X_@reddit
Now is a good time to ask the question. What is the difference between Abort, Fail, and Ignore? I was always confused by that.
canthearu_ack@reddit
Abort -> close the program and return to DOS prompt.
Retry -> attempt to reissue I/O command with the same parameters and data.
Fail -> report I/O error to application. Let application deal with fail code in whatever way it chooses.
Ignore -> report I/O success to application, even if the data didn't get written or even if the read didn't pull valid data. This usually causes data corruption or system lockup.
Choosing ignore is why so many crashes occured on DOS computers.
CommunityHairy6695@reddit (OP)
assume that DISKCOPY A: B:
(A)bort kills the diskcopy program,
(R)etry tries again to read/write the sector,
(I)gnore, even it cannot be read, tells 'that's ok' to the diskcopy. that means data-loss.
(F)ail tells to diskcopy that sector can't been accessed and let the app decide what to do..