Вы находитесь на странице: 1из 1

if WScript.Arguments.

Count < 2 Then


WScript.Echo "Error! Please specify the source path and the destination. Usa
ge: 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"

Вам также может понравиться