0

First off, I do not want to rewrite a value.

I wish to open for example the following:

HKEY_LOCAL_MACHINE\Software\IBM\ADSM\CurrentVersion\Nodes

That is it, I've been looking at vbs scripts and seen the following:

Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\IBM\ADSM\CurrentVersion\Nodes\","REG_SZ"
WshShell.Run "regedit", 1,True
Set WshShell = Nothing

This however just opens regedit at the base directory.

basickarl
  • 37,187
  • 64
  • 214
  • 335
  • I think you're missing a param of `RegWrite`. You should be passing `Name`, `Value`, `Type`. It looks like you're passing `Name`, `Type`. – Bond Mar 29 '14 at 05:05
  • Possible duplicate of [How to launch windows regedit with certain path?](http://stackoverflow.com/questions/137182/how-to-launch-windows-regedit-with-certain-path). If you want to go the VBScript route you need to write the key you want opened to a specific registry key before starting `RegEdit`. – Ansgar Wiechers Mar 31 '14 at 08:21
  • @AnsgarWiechers So I cannot just open the listing? – basickarl Mar 31 '14 at 20:01
  • No. Please read the answers to the question I referred you to. One of them explains en detail how starting `RegEdit` with a specific registry path works. – Ansgar Wiechers Mar 31 '14 at 21:20

0 Answers0