qqq.exe exists.
$DB is correct, I use it other times just fine.
$DB = Get-Content C:\Users\asd\Desktop\Farm\AccountList.txt
foreach ($x in $DB){
Rename-Item C:\Users\asd\Desktop\Farm\$x\qqq.exe $x.exe
}
Rename-Item : Cannot bind argument to parameter 'NewName' because it is null. At C:\Users\asd\Desktop\Farm\test2.ps1:3 char:57 + Rename-Item C:\Users\asd\Desktop\Farm\$x\qqq.exe $x.exe + ~~~~~~ + CategoryInfo : InvalidData: (:) [Rename-Item], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RenameItemCommand
$x.exe
->"$x.exe"
– Mathias R. Jessen