随笔分类 -  JScript

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

点击右上角即可分享
微信分享提示