Re: running batch file at Windows CE 5.0 boot time
- From: "Chuck" <MDchuck@xxxxxxx>
- Date: Wed, 19 Jul 2006 15:34:43 -0400
Hi Paul:
Thank you for comments. I will reply in platbuilder group next time.
Chuck
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:erAVZc2qGHA.3816@xxxxxxxxxxxxxxxxxxxxxxx
And for goodness sake don't post the same message separately all over the
place. Your question has already been answered in
microsoft.public.windowsce.platbuilder, for that matter. There's no call
to post it again anywhere.
Since many of us read several groups, you're just wasting our time reading
the same message over and over. Post it to *the* appropriate group. If
you're not sure, post to the target groups with a *single message*,
listing the targets in the To field. Although this is almost *never*
needed, newsreader software handles it like a single message, so you can
avoid annoying the very people who you need help from.
Paul T.
"Chuck" <MDchuck@xxxxxxx> wrote in message
news:ea2lVO2qGHA.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
.
- Follow-Ups:
- Re: running batch file at Windows CE 5.0 boot time
- From: Frank Steinmetzger
- Re: running batch file at Windows CE 5.0 boot time
- References:
- running batch file at Windows CE 5.0 boot time
- From: Chuck
- Re: running batch file at Windows CE 5.0 boot time
- From: Paul G. Tobey [eMVP]
- running batch file at Windows CE 5.0 boot time
- Prev by Date: Re: running batch file at Windows CE 5.0 boot time
- Next by Date: Re: running batch file at Windows CE 5.0 boot time
- Previous by thread: Re: running batch file at Windows CE 5.0 boot time
- Next by thread: Re: running batch file at Windows CE 5.0 boot time
- Index(es):
Relevant Pages
|