当前位置: 移动技术网 > IT编程>脚本编程>VBScript > vbs循环产生的参数的传递问题

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

2017年12月12日  | 移动技术网IT编程  | 我要评论

上原瑞惠,哥哥轻一点我疼,红图网

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

这个只传递一次就完了

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网