无法检索引用的URL [英] Cannot retrieve referenced URL
问题描述
我在.wsf文件中有JavaScript,我收到错误:
C:\bin\ LDLSInfo.wsf(53,34)Windows脚本宿主:
无法检索引用的URL:S:\tools\JScript\lib\StandardWSH.js
在第53行,它表示
<脚本语言=JScriptsrc =S:\tools\JScript\lib\StandardWSH.js/>我知道LDLSInfo.wsf(主脚本)和StandardWSH.js(要加载的脚本),
<两个都可以正常工作,因为我从不同的机器运行它们。
它在一台机器上工作正常,而不是另一台,都是Windows 7 x64计算机。所以我想我缺少一些.dll的。
感谢您的帮助,
-jb
显然,这只是在命令提示符下在管理模式下运行.wsf时发生。 b
$ b
Pekka,S:驱动器对于这两台机器是一样的。
abatishchev,我不知道,我固定脚本语言为javascript。
David,cscript是defualt处理器。
当我运行脚本当不在管理模式下,它加载文件就好了。当然,现在我还有另外一个错误,但这完全是另外一个问题。感谢您的输入。
-jb
I have JavaScript inside a .wsf file and I'm getting the error:
C:\bin\LDLSInfo.wsf(53, 34) Windows Script Host:
Cannot retrieve referenced URL: S:\tools\JScript\lib\StandardWSH.js
At line 53, it says
<script language="JScript" src="S:\tools\JScript\lib\StandardWSH.js"/>
I know that LDLSInfo.wsf (the main script) and StandardWSH.js (the script to load) both work fine, because I've ran them from a different machine.
It works fine on one machine and not on the other, both are Windows 7 x64 computers. So I'm thinking I'm missing some .dll's.
Thanks for the help,
-jb
So apparently, this only occurred when I ran the .wsf in Admin mode in the command prompt.
Pekka, the S: drive is the same for both machines.
abatishchev, I didn't know that, and I fixed the script.language to "javascript".
David, cscript is the defualt processor.
When I run the script when not in Admin mode, it loads the file just fine. Of course, now I have another error to figure out, but that's another question entirely. Thanks for the input.
-jb
这篇关于无法检索引用的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!