Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 找不到wscript-命令行windows 8_Javascript_Windows_Wsh - Fatal编程技术网

Javascript 找不到wscript-命令行windows 8

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");

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

我的系统是Windows8。我正在运行带有节点的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>
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
运行脚本的任何特定原因?