Skip to content

Instantly share code, notes, and snippets.

View riskeez's full-sized avatar

Ilia Syrtsov riskeez

  • 17:00 (UTC +01:00)
View GitHub Profile
@riskeez
riskeez / ConvertXLS.ps1
Last active January 25, 2022 10:40 — forked from gabceb/ConvertXLS.ps1
Powershell script to convert all xls documents to xlsx in a folder recursively
# XLS to XLSX Batch convert script
# Forked from https://gist.github.com/gabceb/954418
# Works well using Office 365
$folderpath = "D:\XLS Files"
$filetype ="*xls"
Add-Type -AssemblyName Microsoft.Office.Interop.Excel
$xlFixedFormat = [Microsoft.Office.Interop.Excel.XlFileFormat]::xlWorkbookDefault