找不到wscript - 命令行窗口8

时间:2013-10-01 14:00:56

标签: javascript windows wsh

我试图使用javascript脚本来整理我的itunes库。

我的系统是Windows 8.我正在运行带有节点的javascript文件。

c:\Users\SaythandBec\Desktop>node RemoveDeadTracks.js

c:\Users\SaythandBec\Desktop\RemoveDeadTracks.js:46
var     iTunesApp = WScript.CreateObject("iTunes.Application");
                    ^
ReferenceError: WScript is not defined
    at Object.<anonymous> (c:\Users\SaythandBec\Desktop\RemoveDeadTracks.js:46:17)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

c:\Users\SaythandBec\Desktop>

有没有让wscript运行所以我可以执行脚本?

0 个答案:

没有答案