Question:
I’m looking for a copy of snip.exe. This program registers/unregisters components/DLLs under a given directory.
Answer:
I don’t know about SNIP, but how about an even easier method?
Copy all the data between (but not including) the two rows of #s below, open Notepad, paste my data into Notepad and save it as a file with a .reg extension. Then double-click that file.
Now when you double-click on an OLE executable (.ocx, .dll, or .exe), you will get an opportunity to register or unregister it. You can do a search from a subdirectory for files with the .dll or .ocx extension and then select all of them and right-click to register or unregister them. I do this all the time in my project directories.
Here is the code:
##########REGEDIT4; regsvr.reg, Copyright (c) 1997-1998, Chris Sells.; All rights reserved. NO WARRANTIES ARE EXTENDED. USE AT YOUR OWN RISK.; P.S. Enjoy and send comments to [email protected].;; History:; 10/25/98; Replaced %1 with %L to get long file name support.; (Thanks to Sergey Tetkinfor the suggestion!);; Sometime in early 1997: 1st release; Don, Tim, Keith and I were sitting around at a GCOM talking about; what a pain it was to perform self-registration and couldn't I; add a shell extension to augment the context menu (I had written; the Win95 course)? I said I could do even better than that and; this regfile was born.; Register and Unregister DLLs and OCXs[HKEY_CLASSES_ROOT.dll]@="dllfile"[HKEY_CLASSES_ROOT.ocx]@="dllfile"[HKEY_CLASSES_ROOTdllfileshellRegister COM Servercommand]@="regsvr32 "%L""[HKEY_CLASSES_ROOTdllfileshellUnregister COM Servercommand]@="regsvr32 /u "%L""; Register and Unregister EXEs[HKEY_CLASSES_ROOT.exe]@="exefile"[HKEY_CLASSES_ROOTexefileshellRegister COM Servercommand]@=""%L" /regserver"[HKEY_CLASSES_ROOTexefileshellUnregister COM Servercommand]@=""%L" /unregserver"##########