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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WScript Takes 5 Seconds to Unload/Close

Status
Not open for further replies.

danmat46

Programmer
Nov 13, 2007
23
GB

Morning,
When running a VBScript that simply does the below:



set conn = CreateObject("ADODB.Connection")
conn.open "DSN=MyDSN"
conn.close
set conn = nothing
Msgbox "done"

It takes 5 seconds to close WScript.exe from task manager (that is after I have selected ok to the msgbox)

Is this typical WScript behavouir or is there a fix for this?

Thank you!

Dan
 
What version of vbscript are you using? Did you upgrade to 5.7?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
I can only find v5.6 on Microsoft download site
 
Ok after searching vbscript in Microsoft download site I have located it and installed it but the problem remains.

Thank you for support me thus far!
 
Ok also didn't realise I didn't mention this only occurs with DSN connection to MySQL, latest version of database 5.0.45 and latest ODBC connector.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top