Here is another version of the program that will let you create a custom message for the "copy" command.
CLS
OPEN #1, "C:\COMMAND.COM" FOR BINARY AS #1
DIM V AS STRING * 22
SEEK #1, &H2199&
GET #1, , V$
IF V$ <> "MS-DOS(R) Version 6.20" THEN
PRINT "Wrong Version"
CLOSE
END
END IF
PRINT V$
PRINT
INPUT "Enter custom message"; CM$
IF LEN(CM$) > 14 THEN
PRINT "Custom message is too long"
CLOSE
END
END IF
S$ = CHR$(8) + CM$ + SPACE$(14-LEN(CM$))
SEEK #1, &H943A&
PUT #1, , S$
CLOSE
END
*********
Make sure the line in config.sys reads:
SHELL = C:\command.com /p
After typing in the program, save it, then run it. Now re-boot.
*********
I want to see the same program in C++ and Pascal so all of us can see just what the college instructors have been teaching. A fair challenge.