PowerBuilder – Find windows where datawindow is used

If You have a listo of datawindows and would like to make a list of windows where each of these datawindows are used, this Power-Shell function might help.By tweaking it You could search for whatewher You need, but basic concept is below.[Console]::OutputEncoding = [System.Text.Encoding]::UTF8$windowTitles = "windowsTitles.txt"New-Item $windowTitles -type file -forcefunction search ([string]$fullName) { $shortName =  [io.path]::GetFileNameWithoutExtension($fullName) $files = gci -include *.srw,*.sru,*.srd -recurse | select-string $shortName | group path | select name $found = 0 if ($files.Count -eq 0) { return 0 } foreach ($file in $files) { $shortName2 =  [io.path]::GetFileNameWithoutExtension($file.Name)…

Continue Reading

End of content

No more pages to load

Close Menu