Thanks for the help but I am still unsure of how to set the text that would
otherwise appear in red on the PS console to output log file. I wanted to
merge the error and success output text streams for the current session or
code block.
Is this the best I can do?
For example if I placed this command in a file ps_code_file.ps1
Set-Location x:nosuchdirectory -ErrorVariable xxbugs >> myscriptlog.txt
$xxbugs >> myscriptlog.txt
How can I get the
--
Romans 12:1-3
"Marco Shaw" wrote:
> > When I use verb-noun >> foo.txt inside the ps_code_file.ps1 it only seems
> > to capture the successful outputs in the pstemplog.txt
> >
> > What method are kin to the standard error and standard out redirection in
> > a
> > ksh script ?
>
> Very good ref:
> http://blogs.msdn.com/powershell/arc...rvariable.aspx
>
>
>