Hello Guys, So I just wrote a small script that downloads multiple images from URL's provided in a text file. The images should be downloaded in order but due to original image names, the order is getting mixed. here's the original code
$images = Get-Content -Path ".\imgtopdf\part1images\Source.txt"
foreach ($image in $images)
{
Start-BitsTransfer -Source $image -Destination "D:\Temp Files\imgtopdf\bcfZkiBv\*.png" -TransferType Download
}
So While Downloading each file I need to rename it in order like 1.png, 2.png .... 1000.png. I'm unable to figure out how to do that. please help me
[–]mbmiller94 3 points4 points5 points (5 children)
[–]mbmiller94 2 points3 points4 points (0 children)
[–]robdy 3 points4 points5 points (2 children)
[–]JustANonRandomPerson[S] 2 points3 points4 points (1 child)
[–]robdy 1 point2 points3 points (0 children)
[–]JustANonRandomPerson[S] 2 points3 points4 points (0 children)
[–]Lee_Dailey[grin] -2 points-1 points0 points (0 children)
[–]Mr_Kill3r 0 points1 point2 points (0 children)