Jump to content

problem with regdelete


Recommended Posts

Hello , I am playing with regwrite and regdelete, and I got to a very wired problem..

Its seems that there is something wrong with regdelete

when I sue this script

ConsoleWrite(@crlf & RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 3, "REG_SZ", @scriptdir & "\2.exe"))

ConsoleWrite(@crlf & RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\3"))
ConsoleWrite(@CRLf & @error)

I get in the console

1

0

0

What means that the registry is written good (1) and then when it try to delete the registry it say it does not exist... But as you can see I write it just before

Maybe I write it wrong?

THnak you.

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
 Share

  • Recently Browsing   0 members

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