Jump to content

visual basic syntax references


Recommended Posts

hey guys i am using visual basic 6.0 to create simple registry key deleter

what i used is here

Shell ("reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\wgalogon /f"), vbHide

but these dont work until i make it

Shell ("reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\wgalogon" /f"), vbHide

when i do this it says syntax error

it means i need " in registry key

how to do that any help

Link to comment
Share on other sites


Why would you want to delete that key? (Hmmm, says me!) If this is in reference to "Not Genuine", why not just use MS' Replace Key (using the valid correct key, of course) method and revalidate? This is part of KB905474 "WGA Validation". Works fine.

Unless you mean this? This is in reference to a little-known "boo-boo" on MS' part for folks reinstalling their OS using the key on the side (COA) and the OEM's "modified" XP Install CD. In essence, (AFAICR), the files in a certain version (can't remember which) were incorrect and the only way to correct it was to first eliminate references to the "bad" and reinstall the newer, thus correctly validating.

Please explain your reasoning. (cough-cough).

Edited by submix8c
Link to comment
Share on other sites

  • 3 weeks later...

why don't you just use this instead

 Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\wgalogon]

notice the minus - between the [ h

that means remove the reg key

just save it as WHATEVERYOUWANTTOCALLIT.REG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...