同样BAT文件从桌面或在程序中调用时表现不同 [英] Same BAT file behaving differently when called from Desktop or from within a Program

查看:102
本文介绍了同样BAT文件从桌面或在程序中调用时表现不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows 7。我想触发一个BAT文件来运行一次一些声音发生。

I'm using Windows 7. I want to trigger a BAT file to run once some sound happens.

BAT文件应触发Skype通话。

The BAT file should trigger a Skype call.

对于这一点,我用下面的BAT命令:

For that, I'm using the following BAT command:

c:\"Program Files"\Skype\Phone\skype /callto:someUsername

Skype的应该是触发前已经在运行。如果我在我的桌面上双击此BAT文件,它会平稳运行,弹出的Skype,并开始呼叫。

Skype should be already running before the trigger. If I double-click this BAT file on my desktop, it will run smoothly, pop up Skype, and start the call.

现在我使用 ISPY软件触发超过指定的阈值的声音BAT文件。

Now I'm using ISpy software to trigger the BAT file over a specified sound threshold.

ISPY工作正常。它检测的声音并触发BAT文件。
但是,当BAT文件开始运行,而不是弹出的Skype尝试加载一个新的Skype实例。

ISpy is working fine. It detects the sound and triggers the BAT file. But when the BAT file starts running, instead of popping up Skype it tries to load a new Skype instance.

有没有调用BAT文件与双击或在ISPY之间的上下文区别?

Is there a context difference between calling BAT file with double click or within ISpy?

我如何克服这个问题?

推荐答案

@PaulojFonseca并没有因为这个帖子后一天,这意味着2012年10月29日检查了,所以他不太可能回来后他的回答。即使他不会在这里接受他的的答案,我会后这样至少它会显示出来。我已经编辑它,使答案更容易阅读没有太多的内容。

@PaulojFonseca hasn't checked in since one day after this post, meaning Oct 29, 2012, so he won't likely come back to post his answer. Even though he won't be here to accept his own answer, I'll post it so at least it will show up. I've edited it to make the answer easier to read without much context.

运行......时ISPY ...不是[被人需要的]启用所有权限。如果我改变了在安全preferences比批处理文件运行平稳。

"... when running ISpy, ... not all permissions [that were needed were] enabled. If i change this in the security preferences than the batch file runs smoothly."

这篇关于同样BAT文件从桌面或在程序中调用时表现不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆