Brad said:
Thanks I have tried this
REGEDIT4
["hkey_local_machine\software\odbc\odbc.ini\odbc data sources"]
"FMProd"=-
With no luck. FMProd is the value name (of the string?) I do
not want to actually delete the key "odbc data sources"
Have I got this command right?
Hi
1)
This should work better:
--------------------8<----------------------
REGEDIT4
[HKEY_LOCAL_MACHINE\software\odbc\odbc.ini\odbc data sources]
"FMProd"=-
--------------------8<----------------------
(note blank line at end)
2)
You can use reg.exe as well (comes builtin with WinXP):
REG.exe DELETE "HKLM\software\odbc\odbc.ini\odbc data sources" /v FMProd /f
3)
With a VBScript:
'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")
On Error Resume Next
oShell.RegDelete "HKLM\software\odbc\odbc.ini\odbc data sources\FMProd"
'--------------------8<----------------------
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx