I have found the answer on the error.

In the batch file you have to call

%windir%\kix32.exe in stead of c:\windows\system\kix32.exe