Click to See Complete Forum and Search --> : QBASIC


Zimbozubble
April 17th, 2001, 08:55 AM
I'm trying to write a program that will output the value of a registry key to a text file but I don't know where to start! Can anyone help!! Please!!

Jean-Guy2000
April 17th, 2001, 03:38 PM
Private Sub Command1_Click()
Dim RegCmd As String

RegCmd = "regedit /E C:\output.txt HKEY_CURRENT_USER\Software\Microsoft"
Shell RegCmd, vbMinimizedFocus
End Sub

This will create a C:\output.txt file (should be a .reg) it's a exported segment of the registry.