473,395 Members | 1,558 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Backup Registry Help!

I have a small program that modifies a few registry entries. Nothing that
would cause problems with the system, but I'd like to back up the registry
just in case.

How?

Thanks
Ron
Nov 21 '05 #1
3 1121
"Capt_Ron" <Ca*****@discussions.microsoft.com> schrieb:
I have a small program that modifies a few registry entries. Nothing that
would cause problems with the system, but I'd like to back up the registry
just in case.


If you want to export a section from the registry, take a look here:

<URL:http://groups.google.de/groups?selm=uPW2YSXCFHA.960%40TK2MSFTNGP09.phx.gbl >

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Would you have another link? My work's proxy/firewall won't allow me to use
that one. It blocks UseNet for some stupid reason.

Sorry.
Ron.

"Herfried K. Wagner [MVP]" wrote:
"Capt_Ron" <Ca*****@discussions.microsoft.com> schrieb:
I have a small program that modifies a few registry entries. Nothing that
would cause problems with the system, but I'd like to back up the registry
just in case.


If you want to export a section from the registry, take a look here:

<URL:http://groups.google.de/groups?selm=uPW2YSXCFHA.960%40TK2MSFTNGP09.phx.gbl >

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
"Capt_Ron" <Ca*****@discussions.microsoft.com> schrieb:
Would you have another link? My work's proxy/firewall won't allow me to
use
that one. It blocks UseNet for some stupid reason.


An easy solution is using "regedit.exe"'s command line options to
export/import registry sections. The following implementation is based on a
VB6 sample written by Thorsten Dörfler [MVP]
(<URL:http://www.google.de/groups?selm=3F7D2DF7.4D9AB5EC%40t-online.de>):

\\\
Public Class RegistryHelper
Public Shared Sub ExportSettings( _
ByVal FileName As String, _
ByVal Section As String _
)
FileName = """" & FileName & """"
Section = """" & Section & """"
Shell( _
"regedit.exe /e " & FileName & " " & Section, _
AppWinStyle.Hide _
)
End Sub

Public Shared Sub ImportSettings( _
ByVal FileName As String, _
Optional ByVal Silent As Boolean = True _
)
FileName = """"& FileName & """"
If Silent Then
FileName = "/s " & FileName
End If
Shell("regedit.exe " & FileName, AppWinStyle.Hide)
End Sub
End Class
///

Keywords: Registry, export, import, section.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Igor Solodovnikov | last post by:
Hi. I am trying to automatically backup transaction log when error 9002 happened. So i have created appropriate job and alert to catch this error. I have two instances of sql server under Windows...
4
by: Bishop | last post by:
For example the files in a computers windows directory and profile directory that the application is running on.
3
by: GB | last post by:
Are all database configuration parameters included in the database backup or not ? If I restore the database from the backup are these restored also ? What is the best way to backup and restore...
2
by: Kums | last post by:
How much time does it take to backup a datbase of size 2 terra byte? Can you specify the tool you use, technique and registry variables with values for your system, so that I get an idea? How...
5
by: Matt Brandes | last post by:
I am looking for a solution that would allow me to recursively backup a given registry key that I could then use to import into another machine. The problem that I keep having is the inability to...
2
by: Ralph Malph | last post by:
I am writing a program to backup user files to a network share quick and easy and I wish to include the capability to backup the Registry files such as the SAM, SYSTEM, DEFAULT, etc files. Windows...
1
by: vighnesh | last post by:
Hi Folks I am doing an application in VB.NET , while deals with Windows Registry and it is required to Backup/Restore the Registry hives. Can anyone please suggest me how to implement that...
4
by: Chuck B | last post by:
I am modifying remote registries for about 150 computers. Is there any easy way in C# to do a remote registry backup?
0
by: swarna_nama | last post by:
i need to configure the db2 database for automatic backup and need to maintain atleast 2 backup images of the database in db2 . I have updated the configuration parameters auto_maint and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.