Answer the question
In order to leave comments, you need to log in
Powershell. How to solve the problem with exporting to a file?
Good afternoon. I'm trying to export to a file like this:
$result = $ids[$z] + "`t" + $tit[$z] + "`t" + $reg[$z] + "`t" + "0" + "`t" + "0"
Out-File -InputObject $result -FilePath E:\3\vkk.txt -Append
Не удается преобразовать значение "Москва" в тип "System.Int32". Ошибка: "Входная строка имела неверный формат."
Answer the question
In order to leave comments, you need to log in
Clumsy (like all code), but I decided it myself)
$id = $ids[$z]
$result = "$id" + "`t" + $tit[$z] + "`t" + $reg[$z] + "`t" + "0" + "`t" + "0"
Out-File -InputObject $result -FilePath E:\3\vkk.txt -Append
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question