Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

out-file (but with actual breaks)

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-03-2008   #1 (permalink)
IT Staff
Guest


 

out-file (but with actual breaks)


"computers: " + $c.toupper() | out-file -filepath
D:\results.txt -append

But i want this way , how do it get this ?

results.txt
Computer : 1
....detail line 1
....detail line 2
<a line break here>
Computer : 2
....detail line 1
....detail line 2




My System SpecsSystem Spec
Old 01-03-2008   #2 (permalink)
Jeffery Hicks [MVP]
Guest


 

Re: out-file (but with actual breaks)

you could use something like this

write `r | out-file d:\results.txt -append

--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org

Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.

"IT Staff" <jkklim@xxxxxx> wrote in message
news:eQ$y6heTIHA.5524@xxxxxx
Quote:

>
> "computers: " + $c.toupper() | out-file -filepath
> D:\results.txt -append
>
> But i want this way , how do it get this ?
>
> results.txt
> Computer : 1
> ...detail line 1
> ...detail line 2
> <a line break here>
> Computer : 2
> ...detail line 1
> ...detail line 2
>
>
>
My System SpecsSystem Spec
Closed Thread

« out-file | Save As »
Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing from DN to just users actual name? TimParker PowerShell 2 07-14-2008 04:06 PM
Vista offline files breaks Office 2007 file save - repeatable BigWindow Vista networking & sharing 20 11-16-2007 07:57 PM
Display actual file type, not description of the type Doug Vista file management 3 10-12-2007 01:40 AM
Actual problems Richard Urban Vista General 51 01-22-2007 10:22 PM
Actual Difference? SilentOlsen Vista General 3 07-07-2006 03:05 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51