are you running this through the windows scripting host ?
-----Original Message-----
From: Robertson-Ravo, Neil (REC)
[mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 11:38
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] VB'ers?!
Any decent VB'ers in the house?
anyone know whats up with this code? It seems to work on certain Windows
configs but fails on others...
Anyone?
const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Internet Explorer\Main"
strValueName = "Start Page"
strValue = "c:\iis_test\testpage171.htm"
oReg.SetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]