Guest +Bob+ Posted July 8, 2007 Posted July 8, 2007 I've written a program that I need to run just after logon. It runs from a Windows command line (perl program) via an installed Perl interface that's always there (i.e. .pl programs can be run from anywhere simply by typing their names at the command line). My program doesn't really interface with Windows much except to pop a window indicating an error condition - if it occurs. Then it terminates. I set it up to run out of the start menu under Startup, but that causes it to pop a command window to run. I also tried it from HKCU Run but it has the same effect. I'd like to run it more transparently, with no popped command window or perhaps an automatically minimized window. Also, the sooner it runs in the startup process,the better. So if there is a reg key that loads sooner after logon, that's better. Two questions: - Can I get this to run without a command window, or with a automatically minimized command window? - Is there another reg key better suited to this and capable of earlier execution ? Thanks,
Guest Pegasus \(MVP\) Posted July 8, 2007 Posted July 8, 2007 Re: Launching program at startup w/o command window "+Bob+" <uctraing@ultranet.com> wrote in message news:g2j293d4htte8pm5us7gqka15u92tgadp7@4ax.com... > I've written a program that I need to run just after logon. It runs > from a Windows command line (perl program) via an installed Perl > interface that's always there (i.e. .pl programs can be run from > anywhere simply by typing their names at the command line). My program > doesn't really interface with Windows much except to pop a window > indicating an error condition - if it occurs. Then it terminates. > > I set it up to run out of the start menu under Startup, but that > causes it to pop a command window to run. I also tried it from HKCU > Run but it has the same effect. I'd like to run it more > transparently, with no popped command window or perhaps an > automatically minimized window. Also, the sooner it runs in the > startup process,the better. So if there is a reg key that loads > sooner after logon, that's better. > > Two questions: > - Can I get this to run without a command window, or with a > automatically minimized command window? > > - Is there another reg key better suited to this and capable of > earlier execution ? > > Thanks, Create a shortcut to your program, test it, then place this shortcut into the Startup folder.
Guest GO Posted July 9, 2007 Posted July 9, 2007 Re: Launching program at startup w/o command window +Bob+ wrote: > I've written a program that I need to run just after logon. It runs > from a Windows command line (perl program) via an installed Perl > interface that's always there (i.e. .pl programs can be run from > anywhere simply by typing their names at the command line). My program > doesn't really interface with Windows much except to pop a window > indicating an error condition - if it occurs. Then it terminates. > > I set it up to run out of the start menu under Startup, but that > causes it to pop a command window to run. I also tried it from HKCU > Run but it has the same effect. I'd like to run it more > transparently, with no popped command window or perhaps an > automatically minimized window. Also, the sooner it runs in the > startup process,the better. So if there is a reg key that loads > sooner after logon, that's better. > > Two questions: > - Can I get this to run without a command window, or with a > automatically minimized command window? I've used this tool (Quiet) before: http://joeware.net/freetools/tools/quiet/index.htm Works well and it's simple. I've never run it with Perl scripts before but I don't see any reason why it wouldn't work. > - Is there another reg key better suited to this and capable of > earlier execution ? It will run sooner from here than it would from HKCU: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run I believe that's the earliest you can get it to run too, unless you want to get it to run as a service. Greg
Guest +Bob+ Posted July 9, 2007 Posted July 9, 2007 Re: Launching program at startup w/o command window On Sun, 8 Jul 2007 19:24:40 -0500, "GO" <aa533@remove.this.chebucto.ns.ca> wrote: >It will run sooner from here than it would from HKCU: >HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run > >I believe that's the earliest you can get it to run too, unless you want to >get it to run as a service. > Will that run for all users who log on or just the current user ?
Guest GO Posted July 9, 2007 Posted July 9, 2007 Re: Launching program at startup w/o command window +Bob+ wrote: > On Sun, 8 Jul 2007 19:24:40 -0500, "GO" > <aa533@remove.this.chebucto.ns.ca> wrote: > >> It will run sooner from here than it would from HKCU: >> HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run >> >> I believe that's the earliest you can get it to run too, unless you >> want to get it to run as a service. >> > > Will that run for all users who log on or just the current user ? All users. If you're looking for just the current user stick with the key you initially were using.
Recommended Posts