1 2 3 4 5 6 | $i=1 (Invoke-WebRequest 'https://www.google.es/search?q=powershell&tbm=isch' | select -expand images | select -expand src) | %{ $name="imagen"+$i+".jpg" Start-BitsTransfer -Source $_ -Destination F:\power\$name $i++ } |
1 2 3 4 5 6 | $i=1 (Invoke-WebRequest 'https://www.google.es/search?q=powershell&tbm=isch' | select -expand images | select -expand src) | %{ $name="imagen"+$i+".jpg" Start-BitsTransfer -Source $_ -Destination F:\power\$name $i++ } |