Searching a file on network drives
I wish to write a script to search for files with certain extension and these files are located on network drives. Now, the dummy script which i created does work , but takes around a week to generate the report for the files. When the same set of files are scanned using the inbuilt search tool of windows, I can have the same report generated in a few minutes. I would be very grateful , if someone can guide me , if there are any API's that needs to be made use of for generating report faster?