Re: Running a bat file at windows CE 5.0 boot
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 19 Jul 2006 12:09:08 -0700
Why are you starting another thread in a new place for this? The thread in
..platbuilder should get any more comments on this issue from you...
Paul T.
"Chuck" <MDchuck@xxxxxxx> wrote in message
news:uBmRVO2qGHA.2180@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Running a bat file at windows CE 5.0 boot
- From: Chuck
- Running a bat file at windows CE 5.0 boot
- Prev by Date: Re: Data in binary format file not accessible.
- Next by Date: Re: SHNotificationUpdate icon problem on window mobile ppc 2006
- Previous by thread: Running a bat file at windows CE 5.0 boot
- Next by thread: Re: How do I get the ESN of a CDMA device programmatically?
- Index(es):
Relevant Pages
|