MapNetworkDrive中的参数问题,javascirpt
我想做驱动器映射,下面是javascirpt写得代码:var WshNetwork = new ActiveXObject("WScript.Network");
WshNetwork.MapNetworkDrive("v:","\\\\192.168.1.117\\studentftp\\06\\06\\01",true,"1","1");
以上的代码是成功的,但换成下面的代码就错了
var WshNetwork = new ActiveXObject("WScript.Network");
var driverPath="\\\\192.168.1.117\\studentftp\\06\\06\\01";
WshNetwork.MapNetworkDrive("v:",driverPath.value,true,"1","1");
请问这个是什么原因啊,该怎么解决?谢谢了
补充:.NET技术 , ASP.NET