In this case, how can I exclude the file path part of this line?
Link:
www.website.com/downloads/file.exe
Can be .exe, .zip, etc.
Output Goal:
file.exe
Also want to use it as so:
$x = file.exe
$path = C:\Users\Downloads\$x
How can this be pulled of using powershell?