pce0
Technical User
- Jan 27, 2004
- 16
Can anyone tell me if it is possible to dynamically create text box's using HTA?
I have this piece of vbscript that writes out the subkeys and their values from a specified part of the registry:
const HKLM=&H80000002
set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strKeyPath="SOFTWARE\Corporate\Test"
objReg.enumvalues HKLM,strKeyPath,arrsubkeys
for each subkey in arrsubkeys
objreg.GetStringValue HKLM,strKeyPath,subkey,strValue
wscript.echo subkey&": "&strvalue
next
What I want to do now is embed this in an HTA app that will display each subkey value in a text box that the user can edit - ideally I'd like the HTA to dynamically create a text box for each reg subkey - Any thoughts?
I've managed to get an HTA to populate a List Box with each subkey value, but this is of little use as the ultimate goal is to enable the user to edit the key value via the HTA!
Thanks in advance
I have this piece of vbscript that writes out the subkeys and their values from a specified part of the registry:
const HKLM=&H80000002
set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strKeyPath="SOFTWARE\Corporate\Test"
objReg.enumvalues HKLM,strKeyPath,arrsubkeys
for each subkey in arrsubkeys
objreg.GetStringValue HKLM,strKeyPath,subkey,strValue
wscript.echo subkey&": "&strvalue
next
What I want to do now is embed this in an HTA app that will display each subkey value in a text box that the user can edit - ideally I'd like the HTA to dynamically create a text box for each reg subkey - Any thoughts?
I've managed to get an HTA to populate a List Box with each subkey value, but this is of little use as the ultimate goal is to enable the user to edit the key value via the HTA!
Thanks in advance