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