首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过bat脚本将deluge torrentname传递给powershell

通过bat脚本将deluge torrentname传递给powershell
EN

Stack Overflow用户
提问于 2016-09-13 19:58:56
回答 1查看 267关注 0票数 0

我已经安装了deluge,并希望使用execute插件通过powershell发送pushover消息

代码语言:javascript
复制
set torrentname=%2
powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-DelugeNotify.ps1 %torrentname%

我已经创建了上面的,但由于某些原因它不工作我看到一个cmd窗口闪现,关闭,但没有消息通过。

我试过了

代码语言:javascript
复制
powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-DelugeNotify.ps1 "Test"

这样做没问题。

我做错了什么?

EN

回答 1

Stack Overflow用户

发布于 2016-09-13 20:14:16

如果批处理中没有其他参数,则应该使用"set torrentname=%1“

代码语言:javascript
复制
set torrentname=%1
powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-DelugeNotify.ps1 %torrentname%
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39469526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档