dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: NT
Expertise: Beginner
May 25, 2000

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Looking for Snip.exe to (Un)register Components

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 csells@sellsbrothers.com.
;
; History:
; 10/25/98
;   Replaced %1 with %L to get long file name support.
;   (Thanks to Sergey Tetkin  for 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_ROOT\dllfile\shell\Register COM Server\command]
@="regsvr32 \"%L\""

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister COM Server\command]
@="regsvr32 /u \"%L\""

; Register and Unregister EXEs
[HKEY_CLASSES_ROOT\.exe]
@="exefile"

[HKEY_CLASSES_ROOT\exefile\shell\Register COM Server\command]
@="\"%L\" /regserver"

[HKEY_CLASSES_ROOT\exefile\shell\Unregister COM Server\command]
@="\"%L\" /unregserver"
##########
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date