Are you saying the hang is happening in those 10 or so lines of the kix script? Aside from having macros in one of your strings, I really don't see anything jumping out as a problem. You will likely have to post the entire script, or troubleshoot down to the line causing the issue.

Also, in your batch file, why do all the paths have \..\ in them?

Have you considered upgrading the kix32.exe. The current version is 4.64, and 4.22 is like 10 years old.