Skip to content

Instantly share code, notes, and snippets.

View riskeez's full-sized avatar

Ilia Syrtsov riskeez

  • 18:43 (UTC +02: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