Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- Get's the base file name of a file
- #>
- $url = "http://test.com/folder/file.png"
- Write-Host "The URL is $url"
- $base = [io.path]::GetFileNameWithoutExtension("$url")
- Write-Host "The Base File Name is $base"
- $file = [io.path]::GetFileName("$url")
- Write-Host "The File Names is $file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement