Launching program at startup w/o command window

B

+Bob+

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,
 
P

Pegasus \(MVP\)

+Bob+ said:
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.
 
G

GO

+Bob+ said:
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
 
B

+Bob+

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 ?
 
G

GO

+Bob+ said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top