脚本无法从其他脚本运行 [英] Script doesnt run from another script

查看:105
本文介绍了脚本无法从其他脚本运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编译了一个AutoIt脚本并将其上传到服务器.然后,我编写了一个PowerShell脚本,该脚本会下载已编译的AutoIt脚本并在本地运行.

I compiled an AutoIt script and uploaded it to a server. I then wrote a PowerShell script which downloads the compiled AutoIt script and runs it locally.

当我在Windows 7上运行PowerShell脚本时,它运行没有问题.但是,当我从应用程序运行PowerShell脚本时,编译的AutoIt脚本确实会下载但无法运行完成.它确实出现在任务管理器中.

When I run the PowerShell script on Windows 7 it runs without issues. But when I run the PowerShell script from an application, the compiled AutoIt script does get downloaded but does not run to completion. It does appear in task manager.

推荐答案

如果没有看到脚本,很难确定.但是,这可能是一个供股问题.尝试将其添加到脚本顶部,看看它是否可以解决问题.

Without seeing the script it is hard to say for sure. However, it might be a rights issue. Try adding this to the top of your script and see if it fixes the problem.

#RequireAdmin

这篇关于脚本无法从其他脚本运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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