Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 3rd, 2005, 12:33 PM
Authorized User
 
Join Date: Sep 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vb_programmer Send a message via Yahoo to vb_programmer
Default Help with RegEdit.exe ...

Hello to all Forum Members ;

I'm currently working on a project in which I need to export a registry key to a specific .reg file ; actually this is only a part of the huge project so I don;t want to spend much of the time programming the same using RegAPI. Hence, I decided to use RegEdit with /e switch.

The syntaxt which I'm following is ...

Shell "regedit /e <FilePathName.reg> <RegKey to Export>"

The problem is, RegEdit is not exporting the key if that belongs to HKEY_LOCAL_MACHINE and HKEY_CLASS_ROOT. I want my code to be able export keys which may belong to these two redefined members of Registry.

Please tell me if there is any work-around. One thing I think off is ... transfering the required key from HKEY_LOCAL or HKEY_CLASS to HKEY_CURRENT_USER and then perform the export action. Later delete this temporarily transfered key from CURRENT_USER. But while attempting to do this, I found that its still much time consuming job.

Please tell me the solution for this problem ...






Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership: aspnet_sql.exe -> aspnet_regsql.exe ricpue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 9th, 2006 11:40 PM
problem creating .exe from MFC AppWizard(exe) c++ method Visual C++ 0 July 7th, 2006 03:28 AM
ActiveX.exe to standard exe Kaustav VB How-To 6 February 24th, 2006 12:10 AM
PHP5 and php.exe php-cgi.exe php-win.exe freddo Beginning PHP 1 August 16th, 2004 09:28 AM
VB Exe triggering another EXE moiyed Beginning VB 6 2 November 6th, 2003 11:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.