G
Guest
I am currently using the Explorer shell and want to start two different applications at boot time
I have used RegEdit to add the following ke
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
"Startup1"="c:\\startup\\prog1.exe". That works correctly and prog1 is started at boot time
To have a second program start at boot time I added a second value to the key like "Startup2"="c:\\startup\\prog2.exe" but the second program is not started, only the first program is started. If I delete the value for prog1 then prog2 will start.
To try and resolve the problem I wrote a third program "prog3.exe". This program called CreateProcess() for each of the two applications, prog1 & prog2. When prog3 is run from Explorer the program performs as desired, starting both prog1 and prog2 applications then Prog3 terminates. I then added Prog3.EXE to the CurrentVersion\Run key to launch Prog3 on boot. But I still have a problem. On boot Prog3 is launched but it will only start one of the programs (the one called in last call to CreateProcess). I've checked and no errors are being reported by CreateProcess. I've have even left a time delay of 10 sec between the first call to CreateProcess and the second call to CreateProcess with no sucess. The first call to CreateProcess does not return an error but the application does not start (even after waiting 10 second), once Prog3 terminates the program name listed in the last CallTo CreateProcess is started
It seems that with my build of XPE I can have only application run at startup time. Is there a setting that controls this number? If I call Prog3 from Explorer after startup then Prog3 sucessfully starts Prog1 and Prog2. Also all of the above works as expected on XP Pro but not on my build of XPe
Any Help on what could be wrong?
I have used RegEdit to add the following ke
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
"Startup1"="c:\\startup\\prog1.exe". That works correctly and prog1 is started at boot time
To have a second program start at boot time I added a second value to the key like "Startup2"="c:\\startup\\prog2.exe" but the second program is not started, only the first program is started. If I delete the value for prog1 then prog2 will start.
To try and resolve the problem I wrote a third program "prog3.exe". This program called CreateProcess() for each of the two applications, prog1 & prog2. When prog3 is run from Explorer the program performs as desired, starting both prog1 and prog2 applications then Prog3 terminates. I then added Prog3.EXE to the CurrentVersion\Run key to launch Prog3 on boot. But I still have a problem. On boot Prog3 is launched but it will only start one of the programs (the one called in last call to CreateProcess). I've checked and no errors are being reported by CreateProcess. I've have even left a time delay of 10 sec between the first call to CreateProcess and the second call to CreateProcess with no sucess. The first call to CreateProcess does not return an error but the application does not start (even after waiting 10 second), once Prog3 terminates the program name listed in the last CallTo CreateProcess is started
It seems that with my build of XPE I can have only application run at startup time. Is there a setting that controls this number? If I call Prog3 from Explorer after startup then Prog3 sucessfully starts Prog1 and Prog2. Also all of the above works as expected on XP Pro but not on my build of XPe
Any Help on what could be wrong?