If Pos('\TOOLKT21',Translate(Value('PATH',,'OS2ENVIRONMENT'))) > 0 Then tooldrive = Translate(Substr(Value('PATH',,'OS2ENVIRONMENT'),Pos('\TOOLKT21',Translate(Value('PATH',,'OS2ENVIRONMENT')))-2,2))
If tooldrive = '' Then Do
Say "No path found for the OS/2 Toolkit 2.1, please enter the drive."
Say "Example) C:"
Parse Upper Pull tooldrive
toolpath=tooldrive||"\TOOLKT21"
Say "OS/2 Toolkit 2.1 DRIVE =" tooldrive
Say "OS/2 toolkit 2.1 PATH =" toolpath
Say "Is OS/2 Toolkit 2.1 in drive" tooldrive"?(Y/N)"
Parse Upper Pull response
If response <> 'Y' Then Do
tooldrive = ''
Say "Re-enter the Drive that contains OS/2 Toolkit 2.1."
Parse Upper Pull tooldrive
toolpath = tooldrive||'\TOOLKT21'
End
End
Else Do
Say "Path found for the OS/2 2.1 Toolkit."
toolpath = tooldrive||'\TOOLKT21'
Say "OS/2 Toolkit 2.1 DRIVE =" tooldrive
Say "OS/2 toolkit 2.1 PATH =" toolpath
Say "Is OS/2 Toolkit 2.1 information correct?(Y/N)"
Parse Upper Pull response
If response <> 'Y' Then Do
tooldrive = ''
Say "Re-enter the Drive that contains Toolkit 2.1."
Parse Upper Pull tooldrive
toolpath = tooldrive||'\TOOLKT21'
End
End
Do Until file.0 <> 0
ret = SysFileTree(toolpath, 'file', 'D')
If file.0 = 0 Then Do
'CLS'
Say "The OS/2 Toolkit 2.1 is not in drive" tooldrive"."
Say "Do you want to exit from OS/2 Toolkit installation?(Y/N)"
Parse Upper Pull response
If Substr(response,1,1) = 'Y' Then Call Endit
tooldrive=''
Say "Please re-enter the drive for OS/2 Toolkit 2.1."
Say "Example) C:"
Parse Upper Pull tooldrive
toolpath=tooldrive||"\TOOLKT21"
Say "OS/2 Toolkit 2.1 DRIVE =" tooldrive
Say "OS/2 Toolkit 2.1 PATH =" toolpath
Say "Is OS/2 Toolkit 2.1 in drive" tooldrive"?(Y/N)"
Parse Upper Pull response
If response <> 'Y' Then Do
tooldrive = ''
Say "Re-enter the Drive that contains OS/2 Toolkit 2.1."