windows定时任务管理器 即使电脑休眠也能运行的定时任务管理器
Project description
TSCHM - Windows 任务计划管理器
一个强大的 Windows 任务计划管理工具,即使在计算机处于睡眠模式时也能执行计划任务。
功能特性
- ✅ 在系统睡眠模式下执行计划任务
- ✅ 通过
tsm命令提供简洁的命令行界面 - ✅ 轻松管理隐藏任务
- ✅ 按需终止正在运行的计划任务
为什么选择 TSCHM?
大多数 Windows 任务管理工具在系统处于睡眠模式时无法执行任务。TSCHM 专门设计用于解决这一关键限制。
安装
通过 pip 安装:
pip install tschm -U
# 确保 scripts 文件夹已经加入path
或使用 uv:
uv tool install tschm -U
安装完成后,您可以在终端中使用 tsm 命令。
系统要求
- Windows 操作系统
- Python 3.13+
使用方法
安装完成后,您可以使用 tsm 命令来管理计划任务:
tsm
tsm --help
tsm xxx --help
tsm config xxx --help
# 第一次运行 需要先执行 init 进行初始化
tsm config init
# 然后就能添加任务了
tsm add-task test xxx.ps1 DAILY --time=21:00 # 添加一个名为test的任务 每天21点执行 xxx.ps1 脚本
# 默认提供了4个可以用的脚本
tsm config list
配置目录内容 (C:\Users\lppx\.tschm):
--------------------------------------------------
1. [文件] 休眠脚本.ps1 大小: 18 字节 修改时间: 2025-11-12 09:52:52
2. [文件] 倒计时休眠脚本.ps1 大小: 2126 字节 修改时间: 2025-11-12 09:52:52
3. [文件] 倒计时关机脚本.ps1 大小: 2099 字节 修改时间: 2025-11-12 09:52:52
4. [文件] 关机脚本.ps1 大小: 62 字节 修改时间: 2025-11-12 09:52:52
--------------------------------------------------
# 可以方便的设置倒计时关机 (电脑必须支持执行PS脚本)
tsm add-task shutdown 倒计时关机脚本.ps1 DAILY --time=21:00
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tschm-3.0.2-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file tschm-3.0.2-py3-none-any.whl.
File metadata
- Download URL: tschm-3.0.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5273f3c93c3b857916aedff439880b0b32fc2c0a163576004c730960430f12d7
|
|
| MD5 |
bcab33203c404e23f3af3b1e0650d506
|
|
| BLAKE2b-256 |
9ff2962caa62dd16a01280d588daf12a4a08604067db1bf08306aff6b2c24228
|