wscript not working

M

mcnews

what would cause wscript to stop working.
the floowing code was working fine on my box and is still working on
all other boxes:

Dim key As String
Dim sh As Object

Set sh = CreateObject("WScript.Shell")
key = "HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\"
sh.regwrite key & "UserClinicalSamples\", ""

etc...

i now get an automation error.
 
Top