I am using the solution from here to convert .csv to .xlsx:
Convert .CSV to .XLSX using command line
Dim file, WB
With CreateObject("Excel.Application")
On Error Resume Next
For Each file In WScript.Arguments
Set WB = .Workbooks.Open(file)
WB.SaveAs Replace(WB.FullName, ".csv", ".xlsx"), 51
WB.Close False
Next
.Quit
End With
WScript.Echo "Done!"
I have tried running this from .cmd and everything works, but when you run it from cmd, the command just finishes right away though the vb script still processes. Is there a way to let cmd know that vb has finished? I'm trying to create a batch file, so it would be great to know when this part is finished before moving on to the next step. Thanks!