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