Ruben,
Dude, I can tell you are a tech because I couldn't understand what you want to do, what you had done, and what your problem is by your post.
You can modify Registry entries using RegWrite().
'=====
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\Software\ODBC\ODBC.INI\SQLDSN\Descriptio n", "SQL"
'======
The default is REG_SZ. I forget where you add this in the line, either last or before the value, with "" and a comma.
MM23, if you don't know where to find this registry key, run a registry watcher and then make the change manually, and see where changes are made in the registry. Then plug that value into the script.
For both of you I strongly recommend Microsoft Windows 2000 Scripting Guide, the BEST administrative scripting book ever. Sorry Wrox.
HTH
mmcdonal
|