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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


AVAILABILITY

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

Using the MKS KornShell


SEE ALSO

Commands:
mksrv


PTC MKS Toolkit 10.4 Documentation Build 39.