LOCATE 2, 2: PRINT "TOD Installation Program V1.0"
COLOR 15, 8
LOCATE 4, 2: PRINT "1993 GekkoSoft"
LOCATE 3, 2: PRINT "By Glenn Price"
LOCATE 2, 52: PRINT "Take From: "
LOCATE 3, 52: PRINT "Copy To: "
WhichFile:
COLOR 15, 8
LOCATE 10, 4: PRINT "What is the name of the directory that contains the"
LOCATE 12, 4: PRINT "Example: C:\EXETER"
LOCATE 11, 4: PRINT "Exeter Tour of Duty missions?"; : COLOR 10, 8: LINE INPUT " "; TD$
Process:
O = 0
TDL = LEN(TD$)
IF RIGHT$(TD$, 1) = "\" THEN GOTO NooNooNoo
IF LEFT$(TD$, 3) = "C:\" OR LEFT$(TD$, 1) = "A:\" OR LEFT$(TD$, 1) = "c:\" OR LEFT$(TD$, 1) = "a:\" OR LEFT$(TD$, 1) = "B:\" OR LEFT$(TD$, 1) = "b:\" THEN O = 1
IF O <> 1 THEN GOTO Oops
GOTO Continue
NooNooNoo:
BEEP
LOCATE 14, 4: PRINT "There is no need for a backslash (\) after the directory name."
LOCATE 15, 4: PRINT "Please re-enter the drive and directory."
FOR X = 1 TO 10000: NEXT X
LOCATE 14, 4: PRINT " "
LOCATE 15, 4: PRINT " "
IF BN = 1 THEN GOTO Continue
GOTO WhichFile
Oops:
BEEP
LOCATE 14, 4: PRINT "Preceeding the directory name must be either A:\, B:\, or C:\."
LOCATE 15, 4: PRINT "Please re-enter the drive and directory."
FOR X = 1 TO 10000: NEXT X
LOCATE 14, 4: PRINT " "
LOCATE 15, 4: PRINT " "
GOTO WhichFile
Continue:
BN = 1
COLOR 15, 8
LOCATE 10, 4: PRINT "What is the name of the directory that contains X-Wing?"
LOCATE 11, 4: PRINT "Note: You only have to enter the directory name."