创建批处理文件以删除“tel:”从数字的前面
我正在尝试创建一个批处理文件,从号码中删除“tel:”,然后将其传递到软件电话进行呼叫。例如,tel:1234567890 将作为 1234567890 传递。建议我使用以下内容:
@echo off
set "URI=%~1"
set "URI=%URI:tel:=%"
somecommand %URI%
我是这样实现的:
@echo off
set "URI=%~1"
set "URI=%URI:tel:=%"
"E:\Program Files\qutecom\qutecom.exe" -c call/%1 %URI%
软件电话拨打号码,但“tel:”仍然存在。有人可以帮我弄清楚出了什么问题吗?任何帮助将不胜感激。
I am trying to create a batch file that removes "tel:" from a number and then passes it to a softphone to call. For example, tel:1234567890 would pass through as 1234567890. I was advised to use the following:
@echo off
set "URI=%~1"
set "URI=%URI:tel:=%"
somecommand %URI%
I implemented it like this:
@echo off
set "URI=%~1"
set "URI=%URI:tel:=%"
"E:\Program Files\qutecom\qutecom.exe" -c call/%1 %URI%
The softphone dials the number, but the "tel:" is still there. Can someone help me figure out what is going wrong? Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您想删除最后一行中的 %1 。
"E:\Program Files\qutecom\qutecom.exe" -c 调用/%URI%
I think you want to remove the %1 from the last line.
"E:\Program Files\qutecom\qutecom.exe" -c call/%URI%