【发布时间】:2016-09-13 11:58:55
【问题描述】:
我已经安装了 deluge,并想使用执行插件通过 powershell 发送推送消息
set torrentname=%2
powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-DelugeNotify.ps1 %torrentname%
我已经创建了上述内容,但由于某种原因它不起作用我看到一个 cmd 窗口闪烁并关闭,但没有消息通过。
我试过了
powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-DelugeNotify.ps1 "Test"
没问题。
为什么我做错了?
【问题讨论】:
-
在运行(第一个)批处理文件时,您是否还向它传递了 2 个参数(第二个是“测试”)?例如:
"%YOUR_1ST_BATCH_FILE%" "ApparentlySomeUnusedArg" "Test". -
对不起,我的意思是当我使用带有“test”的命令时,我收到了 pushover 消息
标签: powershell batch-file torrent