Write-Host from called powershell script e.g. . TestScript.ps1
Id like to write to the host console from powershell scripts called from appveyor.yml for example
- ps: . somepsscript.ps1
somepsscript.ps1
$test = "blahblah"
Write-Host "do something in here"
Is this possible? How do i redirect the Write-host call from my called Powershell script to the appveyor console
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Owen McDonnell on 05 Mar, 2019 05:11 PM
No need for redirection.
Just call the script like this...
..and you'll see your message.
Ilya Finkelshteyn closed this discussion on 05 May, 2019 09:01 PM.