Automatic program start

Posted on 2002-07-23
Last Modified: 2010-04-13
On windows 2000:  I would like a certain application to start automatically upon completion of bootup.  Conversely, I would like the operating system to shut down when that application is terminated.

How do I do these things?
Question by:npnp
LVL 12

Expert Comment

ID: 7172481
I think the only option is to create a program that does this. I'm not sure of any available. There's a possibility maybe a batch script could do this. I'm not sure though how you could tell when the program is done executing so you could fire the command to shutdown windows. That would be a challenge (if not impossible) using a batch file. Let me play around some and if I figure out something I'll let you know. At this point though, I don't see of anyway of doing it w/o having to write a program to do it. I don't know of any programs that will do this. Have you looked at task scheduler to see if there is something that can be set in it?  I'll let you know if I find something,

LVL 32

Expert Comment

ID: 7172502
What you are asking for is called a SERVICE.  There are a number of things you must do right to build a service and it's far beyond the scope of a 50 pt. question here.

I suggest the excellent book from WROX titled Professional NT Services by Kevin Miller.  It contains everything you might need to know to write a SERVICE application.
LVL 63

Accepted Solution

SysExpert earned 50 total points
ID: 7172509
Well if you need it simple, then all you have to do is put a batch file in your startup folder.
It should contain the program you want to start.

The program itself, as part of the shut down process should call a batchfile to start the shutdown.

This is not a secure method ( meaning it can be stopped ), but it should work.

Is this for a kiosk type application ?

Also see :  - winsuite 2000 - Management and User Lock down of Windows usage. KIOSK

Also :
3183 ; How do I start Internet Explorer in Kiosk mode?

 When you start Internet Explorer in Kiosk mode, IE runs in Full Screen mode. The Internet Explorer title bar, menus,
 toolbars, and status bar are not displayed. You can switch to other running applications using ALT+TAB or
 CTRL+ALT+DEL, but you can't get to the desktop until you quit IE.

 To start IE in Kiosk mode:

 Start /Run / iexplore -k page / OK

 where page can be:
                        Your Start page is used.
      A Web address        
      A local web page        
      A remote web page        

 To exit Internet Explorer in Kiosk mode, press ALT+F4.

 The following shortcut are enabled in Kiosk mode:

    Key combination  Function
    CTRL+A           Select all (editing)
    CTRL+B           Organize favorites
    CTRL+C           Copy (editing)
    CTRL+F           Find (on current page)
    CTRL+H           View History folder
    CTRL+L           Open Location dialog box
    CTRL+N           New window (opens in non-Kiosk mode)
    CTRL+O           Open Location dialog box (same as CTRL+L)
    CTRL+P           Print
    CTRL+R           Refresh
    CTRL+S           Save
    CTRL+V           Paste (editing)
    CTRL+W           Close (same as ALT+F4)
    CTRL+X           Cut (editing)
    ALT+F4           Close
    ALT+RIGHT ARROW  Forward
    ESC              Stop
    F5               Refresh
  From: rayt333   Date: 09/30/2001 07:19AM
    Microsoft Internet Explorer 5 has a range of features that can be selectively controlled by modifying
              the Windows registry.
              Open your registry and find the key below.
              Create a new DWORD value based on the options below, and set the new value to equal "1" to enable the
              restriction or "0" to disable the restriction.
              NoBrowserClose - Disable the option of closing Internet Explorer.
              NoBrowserContextMenu - Disable right-click context menu.
              NoBrowserOptions - Disable the Tools / Internet Options menu.
              NoBrowserSaveAs - Disable the ability to Save As.
              NoFavorites - Disable the Favorites.
              NoFileNew - Disable the File / New command.
              NoFileOpen - Disable the File / Open command.
              NoFindFiles - Disable the Find Files command.
              NoSelectDownloadDir - Disable the option of selecting a download directory.
              NoTheaterMode - Disable the Full Screen view option.
              NoAddressBar - Disable the address bar.
              NoToolBar - Disable the tool bar.
              NoToolbarOptions - Disable the ability to change toolbar selection.
              NoLinksBar - Disable the links bar.
      Note: These restrictions can be used either on a user by user basis by adding them to
              or on a computer wide basis by adding them to HKEY_LOCAL_MACHINE.
         Or try this:
              HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\main
   Right-click on the main key, choose new>StringValue, name it FullScreen. Right-click on
              that, choose modify and type in 1
 From: stevenlewis  Date: 09/30/2001 08:33AM PST
              You can also launch IE in kiosk mode, this will do what you want
I hope this helps !

Author Comment

ID: 7172537
Thank you.  I'll take it from here.
I'm running low on points, or I would have offered more.
-- Norm

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question