Repository navigation
Delayed Start
English · 中文
Preferences → Delayed Start: start programs a while after you sign in to Windows. Programs that don't need to be there at once (OneDrive, sync tools, chat apps) then wait a few minutes, and the desktop is ready sooner.
| Field | Example | Description |
|---|---|---|
| Name | OneDrive |
Shown in the list; also the name of the task in Task Scheduler |
| Program | %LocalAppData%\Microsoft\OneDrive\OneDrive.exe |
The program or script to start. Environment variables, A_ folders such as A_AppData, paths relative to the ALTRun folder and program names in PATH (notepad.exe) work |
| Arguments | /background |
Optional |
| Delay (seconds) | 300 |
Seconds after signing in; 300 = 5 minutes, 0 = at once |
| Start it after signing in | ticked | Untick to keep the entry without starting it |
Click Apply or OK to set the programs up.

- Each entry becomes a task in Windows Task Scheduler (the Task Scheduler link below the list opens it), in the folder
ALTRun\<your user name>, which starts when you sign in, after the delay. Windows starts the programs, so they start even when ALTRun isn't running, and the delay counts from signing in. - The tasks run in your session with your normal rights, like programs you start yourself. No password is stored. Programs that need administrator rights can't be started this way.
- Unlike Task Scheduler's defaults, the tasks also start on battery, keep running when you unplug, have no time limit and run at normal priority.
- The folder belongs to ALTRun: ALTRun makes it match the list, so changes made to these tasks in Task Scheduler are replaced. An empty list deletes the folder.
- ALTRun checks the tasks 30 seconds after it starts, when the list isn't empty: with the same settings file on another PC (for example in OneDrive), the tasks are set up there too, with that PC's paths.
- Each user of the PC has their own tasks; other users' tasks can't be seen.
Many programs start by themselves at sign-in (OneDrive, Teams...), as listed in Task Manager → Startup apps. Such a program would start at once, not after the delay. Two ways to move one to delayed start:
- Startup Apps... on the page lists the programs Windows starts at sign-in (the Run keys and the Startup folders, also those already turned off). Choose one: the edit dialog opens with its name, program and arguments filled in and a delay of 5 minutes.
- Adding a program by hand that also starts by itself: ALTRun says where it starts from and offers to turn that off.
When you click Apply or OK, ALTRun first sets up the delayed start task and then turns the program's own start off the same way Task Manager does (Startup apps → Disable): nothing is deleted, and you can turn it on again in Task Manager. If a task can't be set up, the program's own start is left as it is, so it still starts. Removing such an entry later asks whether to let the program start by itself again.
Programs started for all users (Run for all users, the all-users Startup folder) need administrator rights to turn off: ALTRun sets up the delayed start task, then offers to open Task Manager → Startup apps so you can turn them off there. Store apps that start at sign-in (startup tasks of packaged apps) aren't listed.
Example, OneDrive after 5 minutes: click Startup Apps..., choose OneDrive, check the arguments are /background (starts without opening the OneDrive window) and the delay 300, then click OK and Apply.
Source (only for entries made from a startup app) says which one: HKCU / HKLM / HKLM32 (Run for you / for all users / for all users, 32-bit) or User / Common (the Startup folder for you / for all users), then its name.
ALTRun · GPL-3.0 · Something wrong or unclear? Open an issue or edit docs/wiki · 文档有误或不清楚? 欢迎提交 Issue 或修改 docs/wiki
English
- Getting started
- Installation and upgrades
- Search and shortcuts
- Pinned and recent items
- File search
- Browser bookmarks
- Web search
- Window switching
- Custom commands
- Snippets
- Clipboard history
- Calculator
- System commands and terminal
- Scripts
- Custom hotkeys
- Delayed start
- Folder sync
- Themes
- Quick Switch
- Dialog Folder Panel
- Date Stamp
- PT Tools
- Extensions
- Settings reference
- Data files
- Privacy and network access
- FAQ
- Development guide
- Contributing
- 5 分钟上手
- 安装与升级
- 搜索与快捷键
- 置顶和最近使用
- 文件搜索
- 浏览器书签
- 网页搜索
- 窗口切换
- 自定义命令
- 文字片段
- 剪贴板历史
- 计算器
- 系统命令和终端
- 脚本扩展
- 自定义热键
- 延迟启动
- 文件夹同步
- 主题
- 对话框快速跳转
- 对话框文件夹面板
- 一键加日期
- PT 工具箱
- 扩展功能
- 设置文件参考
- 数据文件
- 隐私与网络访问
- 常见问题
- 开发指南
- 参与贡献