You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
599 B
14 lines
599 B
Add-Type -TypeDefinition @' |
|
using System; |
|
using System.Runtime.InteropServices; |
|
|
|
public class NativeMethods |
|
{ |
|
[DllImport("kernel32.dll", EntryPoint="MoveFileW", SetLastError=true, |
|
CharSet=CharSet.Unicode, ExactSpelling=true, |
|
CallingConvention=CallingConvention.StdCall)] |
|
public static extern bool MoveFile(string lpExistingFileName, string lpNewFileName); |
|
} |
|
'@ |
|
|
|
Get-ChildItem ".\symbols" -recurse | ForEach-Object {[NativeMethods]::MoveFile($_.FullName,[io.path]::combine((Split-Path $_.FullName -Parent),$_.Name.ToLower()))} |