![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | write whatif output to file Redirecting text output to a file works fine by using either > operator or | out-file, but it does not seem to work if the text output is from commands with -whatif switch. eg: the following command will print the output on the screen instead of writing to the file move-item c:\temp\* d:\temp -whatif > c:\test.txt Is there anyway around this or it's just imposible to redirect whatif output to a file? Any help would be appriciated!!! gaindev ps:i'm using PS rc2 |
My System Specs![]() |
| | #2 (permalink) |
| | RE: write whatif output to file sorry for double-post. That was because the system kept saying An error occurred while sending your post -------------------------------------------------------------------------------- We're sorry, but there was a problem with the system and your post was not received. The error has been reported to Operations and will be investigated as soon as possible. Please try again later. Can someone delete these 2 posts for me please? "gaindev" wrote: > Redirecting text output to a file works fine by using either > operator or | > out-file, but it does not seem to work if the text output is from commands > with -whatif switch. > > eg: the following command will print the output on the screen instead of > writing to the file > move-item c:\temp\* d:\temp -whatif > c:\test.txt > > Is there anyway around this or it's just imposible to redirect whatif output > to a file? > Any help would be appriciated!!! > > gaindev > ps:i'm using PS rc2 |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Formatting output with write-host | PowerShell | |||
| No output from write-output | PowerShell | |||
| write-output array without C/R | PowerShell | |||
| Duplicating import-csv with write-output | PowerShell | |||
| how to redirect whatif output to a file? | PowerShell | |||