View Full Version : RunOnce; runs before the computers stable?
Anonymous
10-08-1999, 12:15 AM
I have a WinBatch program I'd like to run at boot-up and it talks to a device on the serial port.
It works ok in the Startup Menu, but I have to deal with removing it from the Startup menu
at the end of the program, not a big deal! The "RunOnce" key seems to be the best place to
place the path to the executable. Does anyone have any insights? Oh, the computer's a Toshiba Libretto
110CT laptop.
Thanks for any help
Whatsup
jstolz
10-08-1999, 02:38 AM
I may not be the right guy to answer this based on the question... but it seems to me you haven't explained why you want it to run under the Run/RunServices/RunOnce/RunServicesOnce keys. What exactly is your objective? The title of your post indicates you're concerned about where it's executed during bootup, but the reference to removing it from Programs|Start makes no sense to me since the start items are executed once per session. Or are you trying to run it once a day regardless of the number of reboots? Heck, I'm all confused!
Regards...
Anonymous
10-08-1999, 12:19 PM
That's for the reply. Your right in the fact that I don't want this program to launch
everytime the computer boots up, and the use of the RunOnce will launch the application
at the next bootup and then purges the entry into the RunOnce registry key. I guess
my concerns are that this application launches just fine from the Startup|Menu, but the
drivers to the serial port device doesn't load correctly or something not loading correctly
from the RunOnce key. I'm not sure that I understand what's happening here.
Any insights are appeciated
Thanks again
Whatsup
jstolz
10-09-1999, 01:12 AM
Hmm... well, I'm no expert here, but I can't see why it'd run from the startup folder but not from RunServices... Run/RunServices is executed before the startup folder, but it's not like Windows loades device drivers and all that after Run but before the startup folder. Deucedly peculiar... I gotta take the wimpy way out and refer you to the Microsoft database...
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/sdkdoc/shellcc/shell/shellext.htm
Let the left pane load and look there...
Alternately, try
http://technet.microsoft.com/cdonline/default.asp
Regards...
Anonymous
10-10-1999, 02:24 PM
Thanks for the links jstolz!!!
It turns out that I was placing the command in the HKEY_LOCAL_MACHINE which
runs before completes windows starts not in HKEY_CURRENT_USER, where it works
just fine.
For those interested; read this article:
http://msdn.microsoft.com/library/periodic/period96/periodic/msdnn/news5_1/human5_1.htm
Thanks again,
Whatsup
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.