title: Convert .CSV to .XLSX using command line
body: <p>I'm looking for a way to batch-convert a series of <code>.csv</code> files to <code>.xlsx</code> using the command line.</p>
  
  <p>I have tried a bunch of different VBScripts that I found but they all seem to be converting <code>.xlsx</code> to <code>.csv</code> and not the other way around.</p>
  
  <p>Here is the closest one I could find but again it's <code>.xlsx</code> to <code>.csv</code>:</p>
  
  <pre><code>if WScript.Arguments.Count &lt; 2 Then
      WScript.Echo "Error! Please specify the source path and the destination. Usage: XlsToCsv SourcePath.xls Destination.csv"
      Wscript.Quit
  End If
  Dim oExcel
  Set oExcel = CreateObject("Excel.Application")
  Dim oBook
  Set oBook = oExcel.Workbooks.Open(Wscript.Arguments.Item(0))
  oBook.SaveAs WScript.Arguments.Item(1), 6
  oBook.Close False
  oExcel.Quit
  WScript.Echo "Done"
  </code></pre>
  
  <p>Any ideas?</p>