?
Solved

Another Registry Question

Posted on 1999-01-07
3
Medium Priority
?
127 Views
Last Modified: 2010-05-03
As per Spenner, I was successful in writing to the Registry through my visual basic program. Now I need to know how to remove what was written using my visual basic program. Here is what was written:SetKeyValue "SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices", _
                    "MyProgexe", "C:\it\Myprogexe\MyProg.exe", REG_SZ
Thank You in Advance...
0
Comment
Question by:sierra7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
ID: 1454626
Declare Function RegDeleteKey& Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal _
hKey As Long, ByVal lpSubKey As String)

hKey is handle of open key or one of the standard key names
lpSubKey is the name of the subkey to delete
0
 
LVL 9

Expert Comment

by:cymbolic
ID: 1454627
For instance:
hKey might be: HKEY_LOCAL_MACHINE, and lpSubKey might be: "SYSTEM\CurrentControlSet\Control\Print\Printers"
0
 

Author Comment

by:sierra7
ID: 1454628
Cymbolic Sir: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices"MyProgexe", "C:\it\Myprogexe\MyProg.exe", REG_SZ is where my initial placement is. Could you send me an example of removing this information from the registry step by step for the complete idiot child ? (This is how I placed the information in there in the first place)Your humble student Thanks You
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question