随笔分类 - JScript
摘要://判断图片是否存在 function checkImgExists(imgurl) { var ImgObj = new Image(); //判断图片是否存在 ImgObj.src = imgurl; //存在图片 if (ImgObj.fileSize > 0 || (ImgObj.width
阅读全文
摘要:您可以重复使用粘贴在 Microsoft站点上的代码,并根据您的需要对其进行调整(也就是编辑远程计算机的名称和脚本的文件名): strRemoteComputer = "RASServer01" strWorkerScript = "MapNetworkDrive.vbs" 设置 objWshCon
阅读全文
摘要:方法1:在当前文件中读取 //读取公用函数所在的文件 eval(new ActiveXObject("Scripting.FileSystemObject").OpenTextFile("common.js", 1).ReadAll()); 方法2:使用wsf主文件中包含 <job id="main
阅读全文
摘要:CreateShortcut Method See Also Running Your Scripts | WshShortcut Object | WshUrlShortcut Object | WshShell Object Creates a new shortcut, or opens an
阅读全文