51 lines
1.7 KiB
XML
51 lines
1.7 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
|
<commands>
|
|||
|
|
<!-- 创建时执行的命令 -->
|
|||
|
|
<command name="初始化环境"
|
|||
|
|
program="cmd.exe"
|
|||
|
|
path="echo Initializing workspace environment..."
|
|||
|
|
description="初始化工作空间环境"
|
|||
|
|
when="oncreate"
|
|||
|
|
enabled="true" />
|
|||
|
|
|
|||
|
|
<command name="检查Python版本"
|
|||
|
|
program="python"
|
|||
|
|
args="--version"
|
|||
|
|
description="检查Python版本信息"
|
|||
|
|
when="oncreate"
|
|||
|
|
enabled="true" />
|
|||
|
|
|
|||
|
|
<!-- 加载时执行的命令 -->
|
|||
|
|
<command name="启动服务"
|
|||
|
|
program="cmd.exe"
|
|||
|
|
path="echo Starting services..."
|
|||
|
|
description="启动相关服务"
|
|||
|
|
when="onload"
|
|||
|
|
enabled="true" />
|
|||
|
|
|
|||
|
|
<command name="检查系统状态"
|
|||
|
|
program="powershell.exe"
|
|||
|
|
args="Get-Process | Select-Object -First 5"
|
|||
|
|
description="检查系统进程状态"
|
|||
|
|
when="onload"
|
|||
|
|
enabled="true" />
|
|||
|
|
|
|||
|
|
<!-- 通用命令(默认为oncreate) -->
|
|||
|
|
<command name="打开记事本"
|
|||
|
|
program="notepad.exe"
|
|||
|
|
description="打开Windows记事本"
|
|||
|
|
enabled="true" />
|
|||
|
|
|
|||
|
|
<command name="查看目录"
|
|||
|
|
program="cmd.exe"
|
|||
|
|
args="/c dir"
|
|||
|
|
description="查看当前目录内容"
|
|||
|
|
enabled="true" />
|
|||
|
|
|
|||
|
|
<!-- 禁用的命令示例 -->
|
|||
|
|
<command name="禁用命令"
|
|||
|
|
program="cmd.exe"
|
|||
|
|
path="echo This command is disabled"
|
|||
|
|
description="这是一个被禁用的命令示例"
|
|||
|
|
enabled="false" />
|
|||
|
|
</commands>
|