2 lines
No EOL
150 B
PowerShell
2 lines
No EOL
150 B
PowerShell
# Takes the variable $Filename, splits it by invalid characters, then joins using _
|
|
$Filename.Split([IO.Path]::GetInvalidFileNameChars()) -join '_' |