That was my fault - I missed it when I removed the others while converting the "00000001" parameters to 1. I ran the code through Sanity and it found no errors other than a bunch of undeclared vars:
 Code:
(ICWD001) - C:\Temp>kgen testfile

KGen v2.4 - Kixtart script UDF linker
(C) 2000-2010 - Glenn Barnas / Inno-Tech Consulting

Searching for available UDFs.........................
 206 UDFs located in 131 files.
No UDFs needed for this generation!
Generation of t.KIX is complete!

Pass 1 : 520
Pass 2.

Warning: Undeclared variable.
              Variable Name: $Title
                In function: Main
         Referenced on line: 20
         Implicit declaration as GLOBAL!

Warning: Undeclared variable.
              Variable Name: $Progress
                In function: Main
         Referenced on line: 45
         Implicit declaration as GLOBAL!

Warning: Undeclared variable.
              Variable Name: $AjustProgress
                In function: Main
         Referenced on line: 46
         Implicit declaration as GLOBAL!

Warning: Undeclared variable.
              Variable Name: $X
                In function: Main
         Referenced on line: 79
         Implicit declaration as GLOBAL!

Warning: Undeclared variable.
              Variable Name: $
                In function: Main
         Referenced on line: 282
         Implicit declaration as GLOBAL!
Pass 3 : 520
Pass 4..
Pass 5 : 519
 5 warnings generated, 520 lines processed.
Can't/Won't run this on our network, but I'd break it down into sections for further testing.

Glenn

PS - I edited the original script post above to break 3 long lines.
_________________________
Actually I am a Rocket Scientist! \:D