Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Release object after use

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB
Hi all

Have a simple script that will update the registry if required by a user
Code:
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshShell.Run "regedit /s D:\validate\update.reg", 7, True
Is there any requirement to release 'wshShell' in the above script?

TIA

FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
>Is there any requirement to release 'wshShell' in the above script?
I would say not really. This may be an interesting read.

But if one takes out the cadanza or the last few bars of a piece of baroque or classical music and that the instrumentalists and/or vocalists stop playing, you know that piece of the music is over anyway without that kind of ritual from the composer, does it result in more satisfaction in the listening or authoring experience? Maybe not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top