autorun

specify programs to run on bootup or login under Win32 

Command


SYNOPSIS

autorun


DESCRIPTION

autorun modifies the Windows Registry Database so that specified commands are run when your system boots or when you log in. When you run the autorun command, a dialog box appears offering four options:

When you click on a specific option the autorun dialog box displays all commands that are currently set for that option. For example, if you click the On user login, every time button, the Application Identifier field displays all programs currently set to always run on login.

To add an application, click on one of the run-time option buttons, then click Add. An Add New Run Command dialog box appears where you can specify the application identifier and the command line to run.

You can modify application command lines by clicking the application name to highlight it, and then clicking Modify. An Edit Run Command dialog box appears where you can modify the existing application identifier or command line.

To delete an application from autorun, click on the application identifier to highlight it, then click Delete.

If you want to set up a script to run every time a machine boots, you can use the mksrv utility to run it as a service.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


NOTE

autorun is provided as a KornShell executable script with bound resources. MKS cannot be responsible for proper functionality of this code if you alter the autorun.ksh file in any way.


PORTABILITY

Windows 2000. Windows XP. Windows Server 2003. Windows Vista.


AVAILABILITY

MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition

Using the MKS KornShell


SEE ALSO

Commands:
mksrv


MKS Toolkit 9.2 Documentation Build 16.