I would like my program to iterate through all drives on a Windows system and search for a particular file type. Right now, I can run the program and pass it a drive letter to start from, but I want it to search on all drives automatically. Currently, I would need to do something like this:
C:\> program.exe C:
C:\> program.exe D:
C:\> program.exe E:
I want the program to get a list of all drives and iterate through all of them without the user having to specify the drive letter. Is this possible using Go?
Similar to this question Listing All Physical Drives (Windows) but using Go instead of C.