Return to Snippet

Revision: 49318
at July 19, 2011 22:16 by danfsmith


Initial Code
param ($path, $urlpath)
$files = Get-ChildItem -path $path -filter *.jpg | Select-Object Name
Write-Output "<?xml version=""1.0"" encoding=""utf-8"" standalone=""yes""?>"
Write-Output "<images>"
foreach ($file in $files)
{
		$n = $file.Name
        "<pic><image>$urlpath/$n</image><thumbnail>$urlpath/thumbs/$n</thumbnail><caption>$n</caption></pic>"
}
Write-Output "</images>"

Initial URL

                                

Initial Description

                                

Initial Title
Generating Gallery XML File from Images

Initial Tags

                                

Initial Language
Windows PowerShell