I can't help you, but there's an issue with your formatting so the code won't show. You need the apostrophes on the same line, for the "format as code" things to work.
$names = cat "\path\to\names.txt"; $i=0; dir | % { ren $_ "$($names[$i]).pdf"}
I can't help you, but there's an issue with your formatting so the code won't show. You need the apostrophes on the same line, for the "format as code" things to work.
$names = cat "\path\to\names.txt"; $i=0; dir | % { ren $_ "$($names[$i]).pdf"}