List first few files in subfolders and return list with file names and folder names using VBScript [duplicate]
问题 This question already has answers here : Recursively access subfolder files inside a folder (2 answers) Closed 4 months ago . The code that I currently have (given below), I prompt the user for the folder path then return the first 10 files from one folder. I then put the file names into a text file. I want to be able to list only 10 random "wav" files from each of the subfolders, then return the names of the files and its corresponding folder name to the text file. CODE Const WINDOW_HANDLE =