源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

vbs循环产生的参数的传递问题

  • 时间:2021-04-24 17:18 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:vbs循环产生的参数的传递问题
Set objFSO = CreateObject("Scripting.FileSystemObject")  Set objFile = objFSO.OpenTextFile("d:\1\0.txt", 1) set WshShell = WScript.CreateObject("WScript.Shell")   strFolder = "d:\1\"     Do Until objFile.AtEndOfStream  strLine = objFile.ReadLine  filename = strLine   Set objFile = objFSO.GetFile(filename) set oShellLink = WshShell.CreateShortcut(strFolder & objFSO.GetBaseName(filename) & ".lnk")   oShellLink.TargetPath = objFile   oShellLink.WindowStyle = 1   oShellLink.WorkingDirectory = objFSO.GetParentFolderName(filename)   oShellLink.Save Loop  objFile.Close 这个只传递一次就完了
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部