my VB is a bit rusty, but obvious questions:

does the location "c:\iis_test\testpage171.htm" exist on all the machines?
is the value given for the Key and Value the same on all machines?  i.e.
they all have that key:value in their Registry?
not sure what the current user constant is doing, but same again, is this
constant across all configurations?

and when it fails on others, what exactly happens, any helpful errors or
what?


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------



                                                                                       
                                           
                    "Robertson-Ravo, Neil (REC)"                                       
                                           
                    <[EMAIL PROTECTED]        To:     
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>     
                    dexpo.com>                          cc:                            
                                           
                                                        Subject:     [ cf-dev ] 
VB'ers?!                                          
                    08/20/02 11:38 AM                                                  
                                           
                    Please respond to dev                                              
                                           
                                                                                       
                                           
                                                                                       
                                           



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]


Reply via email to