I am fairly new to KiXtart and I have a question concerning proper syntax for long files names. I can't seem to get it right.

Some portions seem to work then not. The code below has been rewritten back and forth for testing. Can someone please point out where/what I am doing wrong. Hopefully an answer from an experienced user will be faster then me rewriting and testing over and over. Thanks for any and all help.

SELECT
;*** Parent Server WDID11
CASE ((SUBSTR(@IPADDRESS0,1,11)="139.104. 9")) or ((SUBSTR(@IPADDRESS0,1,11)="139.104. 10"))
SMALL
CLS
AT (2,5) "Changing your NAV parent server to WDID11"
;*** Parent Server WDIT09
CASE ((SUBSTR(@IPADDRESS0,1,11)="139.104.117")) or ((SUBSTR(@IPADDRESS0,1,11)="139.104. 5"))
SMALL
CLS
; AT (2,5) "Changing your NAV parent server to WDIT09"
IF @INWIN=2
AT (4,5) "Hello - Win9x portion of script"
USE w: /DELETE /PERSISTENT
USE w: "\\WDIT09\VPHOME"
SHELL "COMMAND.COM /e:1024 /c IF NOT EXIST C:\PROGRA~1\Norton~1 MD "C:\PROGRA~1\Norton Antivirus" >NUL"
SHELL "COMMAND.COM /e:1024 /c copy w:\grc.dat "C:\PROGRAM FILES\Norton Antivirus" >NUL"
USE w: /DELETE /PERSISTENT
ELSE
AT (4,5) "Hello - WinNT portion of script"
USE w: /DELETE /PERSISTENT
USE w: "\\WDIT09\VPHOME"
SHELL "CMD.EXE /e:1024 /c IF NOT EXIST C:\PROGRA~1\NAVNT MD C:\PROGRA~1\NAVNT >NUL"
SHELL "CMD.EXE /e:1024 /c copy w:\grc.dat c:\progra~1\navnt >NUL"
USE w: /DELETE /PERSISTENT
ENDIF

CASE ((SUBSTR(@IPADDRESS0,1,11)="139.104. 21")) or ((SUBSTR(@IPADDRESS0,1,11)="139.104. 24")) or ((SUBSTR(@IPADDRESS0,1,11)="139.104. 45")) or ((SUBSTR(@IPADDRESS0,1,11)="139.104. 46"))
SMALL
CLS
AT (2,5) "Your parent server should be WDID16"
CASE ((SUBSTR(@IPADDRESS0,1,11)="139.104.241"))
SMALL
CLS
AT (2,5) "Yes it equals 241"
CASE 1
SMALL
CLS
AT (1,2) "It appears your IP Address range is not in my list."

ENDSELECT