View Single Post
  #3 (permalink)  
Old March 11th, 2005, 01:45 PM
mmcdonal mmcdonal is offline
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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
Reply With Quote