running batch file at Windows CE 5.0 boot time



Hi All:

I want to start a bat file at windows ce startup. I tried to modify
"HKEY_LOCAL_MACHINE\init" in the registry but did not work out. I suspect it
only accepts exe's. Then I have tried to make small exe application and
launch a bat file, but have not succeeded there either. My sourcode looks
like:

PROCESS_INFORMATION pi;
ZeroMemory(&pi, sizeof(pi));
CreateProcess(TEXT("\\windows\\cmd.exe"),TEXT("\\windows\\startSMF.bat"),
NULL, NULL, FALSE,CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pi));
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
return 0;

If I run this small application from telnet console, the startSMF.bat will
be launched OK. (again the batch file cannot be launch at boot time)

Any work around to launch batch file in the boot time.

Thanks,

Chuck dot Lin @ Symbol dot COM


.



Relevant Pages

  • Re: running batch file at Windows CE 5.0 boot time
    ... needed, newsreader software handles it like a single message, so you can ... I want to start a bat file at windows ce startup. ... and launch a bat file, but have not succeeded there either. ... Chuck dot Lin @ Symbol dot COM ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: running batch file at Windows CE 5.0 boot time
    ... I want to start a bat file at windows ce startup. ... launch a bat file, but have not succeeded there either. ... Any work around to launch batch file in the boot time. ... Chuck dot Lin @ Symbol dot COM ...
    (microsoft.public.windowsce.embedded.vc)
  • Task scheduling : error 0x80070005: Access denied
    ... I encountered a problem with the Task scheduler with Windows 2003 standart ... I'll want to make a scheduled task that launch a .bat file. ... When I have an interactive session ...
    (microsoft.public.windows.server.general)
  • Running a bat file at windows CE 5.0 boot
    ... I want to start a bat file at windows ce startup. ... launch a bat file, but have not succeeded there either. ... Any work around to launch batch file in the boot time. ... Chuck dot Lin @ Symbol dot COM ...
    (microsoft.public.windowsce.app.development)
  • Re: Running a bat file at windows CE 5.0 boot
    ... I want to start a bat file at windows ce startup. ... launch a bat file, but have not succeeded there either. ... Any work around to launch batch file in the boot time. ... Chuck dot Lin @ Symbol dot COM ...
    (microsoft.public.windowsce.app.development)