use regread for keyexist and readvalue functions of shell object
regwrite for addkey & writevalue fucntions

while, _vbscript_ will exit with error if regread couldn't find the key,
you can use " on error resume next" before validating the key existence, to continue the script execution.

reference:
http://msdn.microsoft.com/library/default.asp?url="">


On 10/14/05, Harding, Devon <[EMAIL PROTECTED]> wrote:

I'm having a tough time converting this kix script to ..vbs.  Any Ideas?

 

; This change will fix an IXOS problem where the default paper size is A4 instead of Letter

If KeyExist("HKCU\Software\IXOS\IXOS_ARCHIVE") = 1

            If KeyExist("HKCU\Software\IXOS\IXOS_ARCHIVE\Viewer\Printing\FAX") = 0

                        AddKey("HKCU\Software\IXOS\IXOS_ARCHIVE\Viewer\Printing\FAX")

            EndIf

            If ReadValue("HKCU\Software\IXOS\IXOS_ARCHIVE\Viewer\Printing\FAX","PaperSize") <> 1

                        WriteValue("HKCU\Software\IXOS\IXOS_ARCHIVE\Viewer\Printing\FAX","PaperSize","1","reg_dword")

            EndIf

EndIf

 

Devon Harding

Windows Systems Engineer

Southern Wine & Spirits - BSG

954-602-2469

 


__________________________________
This message and any attachments are solely for the intended recipient
and may contain confidential or privileged information. If you are not
the intended recipient, any disclosure, copying, use or distribution of
the information included in the message and any attachments is
prohibited. If you have received this communication in error, please
notify us by reply e-mail and immediately and permanently delete this
message and any attachments. Thank You.




--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Fortune and Love befriend the bold"
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to