28 November, 2025

PowerShell Script

# Set Title metadata for all files in the current directory
# to match the file name (without extension)

$shell  = New-Object -ComObject Shell.Application
$folder = $shell.Namespace((Get-Location).Path)

Get-ChildItem | ForEach-Object {
    $item = $folder.ParseName($_.Name)
    if ($item -ne $null) {
        $folder.SetDetailsOf($item, 21, $_.BaseName)
    }
}