/build/static/layout/Breadcrumb_cap_w.png

Need a vbscript to write a binary value

Hi,

We need a vbscript to write the below value.

"HKCR\MIME\Database\Content Type\text/html\"
"Encoding" = "hex: 08 00 00 00"

Please, Can any body help on this?

Regards,
Sanjeev.V

0 Comments   [ + ] Show comments

Answers (4)

Posted by: pjgeutjens 14 years ago
Red Belt
0
Off the top of my head:

WSHShell.RegWrite "HKCR\MIME\Database\Content Type\text/html\Encoding", &h08000000, "REG_BINARY"


Might need some escape characters for the / in the registry path, but I'm sure you can look that up yourself [;)]
PJ
Posted by: sanhivi 14 years ago
Third Degree Green Belt
0
Hi,

I have checked with the above script, but instead of 08 00 00 00 I am getting 00 00 00 08 in the registry.

Can you just modify the script and reply back to me.
Posted by: dunnpy 14 years ago
Red Belt
0
sanhivi,

Hope this helps:

Answer

Dunnpy
Posted by: pjgeutjens 14 years ago
Red Belt
0
Can you just modify the script and reply back to me.

considering the result of your test, are you sure you want me to change that script for you?

If so, PM me, I'll quote you my daily rates and maybe we can come to an understanding

...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ