in reply to Executing program gui

system("C:\\Program Files\\Kofax\\Capture\\bin\\ACXMLAI -gui -u:"carterjg" -p:"kofax"");
should be
system("C:\\Program Files\\Kofax\\Capture\\bin\\ACXMLAI -gui -u:\"carterjg\" -p:\"kofax\"");
or
system('C:\\Program Files\\Kofax\\Capture\\bin\\ACXMLAI -gui -u:"carterjg" -p:"kofax"');