PS > .\GetStream.ps1 *.ps1
File: .\BDay.ps1 . . . . . . . . . . . . . | Display Days until Hours Mins bday
File: .\GetStream.ps1 . . . . . . . . | Display Text Stream Descriptions
File: .\GetVirus.ps1 . . . . . . . . . | GetVirus Data
File: .\ldraw.ps1 . . . . . . . . . . . . | Menu System with LineDraw
File: .\report.ps1 . . . . . . . . . . . | Testing Various Report Options
File: .\ReturnCounts.ps1 . . . . | Return Virus Counts and Differences
File: .\usecmds.ps1 . . . . . . . . .|
File: .\power\ut.ps1 . . . . . . . . | Utah County Virus Percent of SLC Count
File: .\ut2.ps1 . . . . . . . . . . . . . .| Prompt for County Status

Get Stream will Pull the Description of Each File where a stream has been set or will display nothing.

A very Simple PowerScript file

‘# Get Hidden String added to a file using
‘# add-content -path FILENAME -Stream STREAMNAME -Value ‘TEXT’
‘#
param( [string]\$Input1 )
\$files = Get-ChildItem \$Input1
foreach (\$f in \$files) {
Write-Host “File: \$(\$f) `t `t | ” -NoNewline
Get-Content -Path \$f -Stream text -ErrorAction SilentlyContinue
Write-Host
}

Get-ChildItem will return only a listing of files in a directory and will not show the hidden stream

[ Get-Child-Item -Path \$f -Stream text ] This will show all the files that have a text stream setup. Any file that does not will return an error.

So I added [ -ErrorAction SilentlyContinue ] Which will then display nothing if there is an error and then will go to the next file.

This way I am able to add Descriptions to each of My Files and then use GetStream.ps1 to display the saved text Streams.