View Single Post
Old 05-30-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Reading CD/DVDs and saving directory infornation to a text file

Quote:

> #$title + "`n`n" + $files > z:\outputFile.txt
This is basically forcing $files into a string object, thus "compacting"
everything (removing the line breaks).

You could move to doing this step-by-step:
$title >> z:\outputfile.txt
$files >> z:\outputfile.txt

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec