Drive methods


A method is simply a public sub or function inside a class (or form) module. CDrive has no methods, only properties. But it’s easy enough to add one:

Public Sub Format()
Shell Environ$(“COMMSPEC”) & “ /c FORMAT “ sRoot, vbHide
End Sub

No! Wait! It’s a joke. It’s not in the sample program. Look, it has a syntax error; it won’t work even if you type it in yourself. I’m not trying to reformat your hard disk.