How to have a .cmd file run everytime W2K loads

  • Thread starter Thread starter AC
  • Start date Start date
A

AC

I have a java program that I'd like to run in the
background whenever the platform is booted up, even when
no one is logged in. I can run it interactively from
a .cmd script but don't want to manually restart it every
time the platform is rebooted...say, in the middle of the
night.

Is there a startup folder for the system which is not tied
to a specific user or administrator?
 
I have a java program that I'd like to run in the
background whenever the platform is booted up, even when
no one is logged in. I can run it interactively from
a .cmd script but don't want to manually restart it every
time the platform is rebooted...say, in the middle of the
night.

Is there a startup folder for the system which is not tied
to a specific user or administrator?

Start/Run... "gpedit.msc"
Computer Configuration
Windows Settings
Scripts (Startup/Shutdown)
Startup
Add...
 
Many thanks! I"m farther along than before.

I believe the script itself is abending after reboot. Is
there a log file I can view to capture any error
messages? It does use some environment variables that are
not in the system variable list.
 
Many thanks! I"m farther along than before.

I believe the script itself is abending after reboot. Is
there a log file I can view to capture any error
messages? It does use some environment variables that are
not in the system variable list.

Your application has to create a log file itself. However, be aware of
the context in which a startup script is running: the local SYSTEM
account, so your access to network resources is limited to the Domain
Computers group. You can also make the startup script run in visible
mode; see Group Policy.

Those environment variables probably won't be present at startup time.
How do they get created?
 
Back
Top