I've tried using the HKLM\Init key in the registry:
[HKEY_LOCAL_MACHINE\Init]
"Launch76"="cerdisp.exe -c"
but the " -c" at the end seems to keep it from running.
I tried making a batch file which executed "\Windows\cerdisp.exe -c", and
having the project.dat file copy the batch into the \Windows\StartUp
directory. This kinda worked, except it left a command prompt window
maximixed wihle cerdisp was running. If I closed the cmd window, cerdisp was
also closed, and I don't want an extra cmd windows hanging around cluttering
up my task bar.
I also thought I might be able to just write a quick C program to go run
"cerdisisp.exe -c", but I can't find any documentation on how to get C or
C++ to go execute another program.
So, does anyone have an idea of how I can get a program to run at startup,
with command line parameters passed to it?
---
Jeremy
Your idea of writing a C program to run cerdisp.exe and supplying the
-c command line argment is good. You can use the CreateProcess API
for this purpose. The documentation for it can be found here -
http://msdn.microsoft.com/en-us/library/aa908775.aspx
Tom Gensel (eMVP)
On Wed, 27 May 2009 17:26:57 -0600, "jking" <jkin...@comcast.net>
wrote:
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog
GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"jking" <jkin...@comcast.net> wrote in message
news:eZVYjKy...@TK2MSFTNGP06.phx.gbl...