Is there an easy way to append the result ($fullvsspath (gci$fullvsspath-R|Measure-Object).count
in the same line? It is a script to count number of files on a directory.
write-output "$fullvsspath unreachable"|Out-File -Encoding ASCII -a servers1_vsscount.txt;
write-output $fullvsspath (gci$fullvsspath-R|Measure-Object).count|Out-File -Encoding ASCII -a -FilePath servers1_vsscount.txt;
I have no issue with write-host to display on screen but I have problem writing them on a same line. Currently it is writing in different line, for example -