What OS and what runs at startup? Does the machine continue to boot up? This looks similar to a batch file problem. Such will occur if it's not written correctly for whatever is interpreting and executing it.