Skip to content

Instantly share code, notes, and snippets.

View L0laapk3's full-sized avatar

L0laapk3 L0laapk3

View GitHub Profile
$shit = Get-ChildItem -Path "C:\ProgramData\Microsoft\Windows\Start Menu" -Filter '*(1).*' -Recurse -ErrorAction SilentlyContinue -Force | where {! $_.PSIsContainer}
foreach ($file in $shit)
{
echo $file
$dest = $file.FullName.Substring(0, $file.FullName.Length - 8) + $file.FullName.Substring($file.FullName.Length - 4, 4)
Move-Item -Path $file.FullName -Destination $dest -Force
}