Separate array elements by newline.
i new powershell , using scripteditor scripting. have array
eg. $array = 1,2,3,4,5 imported notepad.
i want these displayed as
1
2
3
4
usually in powershell ise not issue , can use get-content trial.txt. using wpf , hence windowbox provides me output
1,2,3,4,5 numbers. want box display
1
2
3.. numbers
please let me know if question is unclear.
life , powershell that:
ps d:\scripts> $x=$array -join "`n" ps d:\scripts> [system.windows.forms.messagebox]::show("hostnames : $x." , "status" , 4) \_(ツ)_/
Windows Server > Windows PowerShell
Comments
Post a Comment