Try "dir z: /s", this will recurse all directories and provide you with file listings for everything you want. Better yet, use "dir z: /s /b", which will give you full path including file name which you can parse (or not) later depending on what you want to get out of it.
Hope it helps.
George