I one wrote a very clever DOS program to find all local drives that were writable and permanent. It had a collection of options to control what to do once it had put this drive list together - but the interface between main() where the options were parsed, and the rest of the program was a function with a long list of parameters... Yah, it was real tacky. But I got lazy.
Wade.