欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vbs循環(huán)產生的參數(shù)的傳遞問題

 更新時間:2008年06月09日 23:08:17   作者:  
用vbs實現(xiàn)循環(huán)產生參數(shù)的傳遞問題,建議大家測試學習
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

這個只傳遞一次就完了

相關文章

最新評論