I am charged with a pretty massive cleanup task. I have a large number of servers that have a very large number of custom COM objects that have been created and installed. I'm charged with uninstalling them. The installer drops these dlls in 5 different directories on a designated drive letter that is determined by which server it is being deployed on.
I would like to write a script or batch command to unregister all dlls in a given directory, or a collection of directories. I have verified that all of the components do exist on all of the servers. However, if there's a way to do an "IfExists" on the dll, I would like to include that as well.
My original thinking was a .bat file, but I don't know how to have the user enter a drive letter that serves as the location where the directories are installed. Is this the best way, or is there an easier way?
I'm in a bit of a time crunch... thank you!