I'm attempting to get a list of files on a shared folder (with their complete path names)- for example, instead of
File1.txt
File2.txt
on \\sharename\foldername
, I'm trying to get:
D:\something\foldername\File1.txt
D:\something\foldername\File2.txt
The answer to this question (How to get the fully qualified path of a share in windows) was helpful, and shows how to get the real drive paths for shares using WMIC., but I'd like to go a little further for more info on the files within the share. Note- the share will be accessed locally, but there are multiple drive letters and I'm trying to avoid hard-coding any paths in a script.