Tag: 夹结构

VBScript:使用Excel中的文件夹结构创build文件

我拼凑了以下VBS文件以读取Excel源文件,并使用基于Excel列A的名称和基于列B(连续)的内容创build文件。 这一切工作… Dim xlsFile Dim objExcel Dim outFile Dim path path = "C:\Documents and Settings\Andy\Desktop\SHORTURLs\JSPs" xlsFile = path & "\urls.xls" Set objExcel = WScript.CreateObject("Excel.Application") objExcel.Workbooks.open(xlsFile) ' Create the File System Object Set objFSO = CreateObject("Scripting.FileSystemObject") intRow = 2 'Row 1 contains headings ' Here is the loop that cycles through the cells Do Until objExcel.Cells(intRow,1).Value […]