/ Published in: Windows PowerShell
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$path = 'C:\SQL' #cd $path $dest = "$path\rptdependencies.txt" @($a) #Gets a list of all rdl files in the directory. #writes the path to a file. set-content $dest -value $path foreach($file in $files) { $xml = [xml](get-content $file.Name) #prints a line for the name of the file. add-content $dest $file.name #prints a line for each command text entry in the file. See RDL schema for other fields. } #Returns the output. get-content $dest