Javascript 找不到wscript-命令行windows 8
我试图用javascript脚本整理我的itunes库 我的系统是Windows8。我正在运行带有节点的javascript文件Javascript 找不到wscript-命令行windows 8,javascript,windows,wsh,Javascript,Windows,Wsh,我试图用javascript脚本整理我的itunes库 我的系统是Windows8。我正在运行带有节点的javascript文件 c:\Users\SaythandBec\Desktop>node RemoveDeadTracks.js c:\Users\SaythandBec\Desktop\RemoveDeadTracks.js:46 var iTunesApp = WScript.CreateObject("iTunes.Application");
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>
c:\Users\SaythandBec\Desktop>node RemoveDeadTracks.js
c:\Users\SaythandBec\Desktop\RemoveDeadTracks.js:46
var iTunesApp=WScript.CreateObject(“iTunes.Application”);
^
ReferenceError:未定义WScript
反对。(c:\Users\SaythandBec\Desktop\removedeadcracks.js:46:17)
在模块处编译(Module.js:456:26)
在Object.Module.\u extensions..js(Module.js:474:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
位于Function.Module.runMain(Module.js:497:10)
启动时(node.js:119:16)
在node.js:901:3
c:\Users\SaythandBec\Desktop>
是否需要运行wscript以便我可以执行脚本?您通过
节点而不是wscript
运行脚本的任何特定原因?