Skip to content

Instantly share code, notes, and snippets.

View riskeez's full-sized avatar

Ilia Syrtsov riskeez

  • 09:21 (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
@riskeez
riskeez / mkv_embed_subs.ps1
Created December 26, 2024 22:49
Embed subtitles (e.g., .ass) into MKV files and force the display of the subtitles
# Define the path to mkvmerge.exe
$mkvmergePath = "C:\mkvmerge.exe"
$outputFolder = "Out"
# Create the output folder if it doesn't exist
if (-not (Test-Path -Path $outputFolder)) {
New-Item -ItemType Directory -Path $outputFolder
}
# Loop through all .mkv files in the current directory