VBscript - Transpose CSV File
问题 Does anyone have a short script in VBscript for transposing a Matrix (given as CSV (comma separated values) file)? A, 1, 2, 3 B, 7, 5, 6 -> A, B 1, 7 2, 5 3, 6 Many Thanks in advance Tom 回答1: So by creating dynamic arrays and auto-increment their growth in parallel with discovering new columns of the original matrix, you can auto build the new data structure quite quickly. Const OutputCSV = "C:\op.csv" Dim dt_start, WriteOutput : dt_start = Now Dim fso : Set fso = CreateObject("Scripting