(imported topic written by SystemAdmin)
I need to report, recursively, all the files in the folders of a specific directory. I have written the below statement to get me through two levels, but it is a bit cryptic (but works). Id like to write it so that I dont need to know how many levels the files go in the directory structure.
if (name of operating system contains “Win7”) then (pathnames of files of it of folders of folders of folder “C:\ProgramData\Microsoft\Windows\Start Menu\H-D Applications”) ; (pathnames of files of it of folders of folder “C:\ProgramData\Microsoft\Windows\Start Menu\H-D Applications”) else if (name of operating system contains “WinXP”) then (pathnames of files of it of folders of folders of folder “C:\Documents and Settings\All Users\Start Menu\H-D Applications”) ; (pathnames of files of it of folders of folder “C:\Documents and Settings\All Users\Start Menu\H-D Applications”) else “N/A”