![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | capture command and its output Hi all I am in the process of learning PS so I am trying the different cmdlets to see wht they do what the output is etc. I would like to log my trials to a text file. I know that I can redirect output with either > or >> or even with | CLIP (to the clipboard). The problem is that all the above methods do not capture the onliner that I try but only its output. Is there a way to capture not only the oneliner output but also the oneliner itself? get-history is not good enough because it shows the oneliners but not their outputs. I'd need something that captures like command1 output1 .... commandn outputn Is this possible? thanks!!! |
My System Specs![]() |
| | #2 (permalink) |
| | Re: capture command and its output Hi The Start-Transcript cmdlet creates a record of all or part of a Windows PowerShell session in a text file. Type 'help Start-Transcript -full' to get help and examples. BTW, there's a bug. Start-Transcript won't record legacy applications (exe) output. ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > Hi all > > I am in the process of learning PS so I am trying the different > cmdlets to see wht they do what the output is etc. > > I would like to log my trials to a text file. > > I know that I can redirect output with either > or >> or even with | > CLIP (to the clipboard). > > The problem is that all the above methods do not capture the onliner > that I try but only its output. > > Is there a way to capture not only the oneliner output but also the > oneliner itself? > > get-history is not good enough because it shows the oneliners but not > their outputs. > > I'd need something that captures like > > command1 > output1 > ... > commandn > outputn > Is this possible? > > thanks!!! > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Hide console and capture output from script? | PowerShell | |||
| Log command output to a file | PowerShell | |||
| How to catch a command output ? | PowerShell | |||
| Writing to host in functions and cmdlets - how to capture this output | PowerShell | |||
| Capture command result | PowerShell | |||