Repository navigation
AddAutoRun
Homes32 edited this page May 14, 2022
·
1 revision
Run a program when the PE Environment starts.
AddAutoRun,<RunGroup>,<Mode>,<Title>,<ProgramExe>,[Parameters]
| Argument | Description |
|---|---|
| RunGroup | One of the following: |
PreShell - Run before the shell (ie. Explorer) is loaded. |
|
PostShell - Run after the shell is loaded. |
|
RunOnce - Run during startup via HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce |
|
AfterNetwork - Run after network connectivity has been established by PENetwork. |
|
| Mode | One of the following: |
NoWait - Do not wait for the program to terminate. |
|
Wait - Wait for the program to terminate before moving on. |
|
HideNoWait - Run the program hidden and do not wait for it to terminate. |
|
HideWait - Run the program hidden and wait for it to terminate. |
|
| Title | Text that may be shown in a progress window while the program is running. May be left blank. |
| ProgramExe | The full path to the program to be executed. |
| Parameters | (Optional) Parameters that will be passed to the program. |
None.
None.
Run a program on startup.
AddAutorun,PostShell,NoWait,"Starting %ScriptTitle%...","%PEPrograms%\%ProgramFolder%\%ProgramExe%"