Thanks Guys,

It is a .vbs script which is being called via a .bat file for configuration.
As for reg values, yes everyone will have this key due to the fact its a
Microsoft standard for Internet Explorer.

The error I get on some machines is : an error on line 6 which is the user
authentication script.

Neil

I think its a user permission thing, thanks for your help, I think we have
cracked it.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 11:48
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] VB'ers?!



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]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


Reply via email to