By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,558 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,558 IT Pros & Developers. It's quick & easy.

Editing the registry on a different partition

P: 2
Hi everyone,
I am trying to write a program that can make some changes into a windows XP registry. My program works great when it is working on the local registry. What I want to do is to be able to make changes into a registry that resides on another partition or harddrive, not over a network.

Basically, I want to plug in a second hard drive and patch THAT registry without booting off of it. I tried something like this below but clearly this isn't it.
Expand|Select|Wrap|Line Numbers
  1.         Dim regKey As RegistryKey, regSubKey As RegistryKey
  2. regKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, "F:\windows")
  3.  
Naturally, "F:\Windows" is not a valid machine name since it is not a network name.

Any ideas? I've hunted around for the last couple of days and I can't find anything like this anywhere. I got LOTs of pages about remote editing and good 'ol registry editing but not like this. Any help you can provide would be REALLY appreciated. Thanks!

I should mention that this is in VB.2005.

Rod

[edited to include version of VB]
Dec 20 '07 #1
Share this Question
Share on Google+
2 Replies


Dököll
Expert 100+
P: 2,364
Hi everyone,
I am trying to write a program that can make some changes into a windows XP registry. My program works great when it is working on the local registry. What I want to do is to be able to make changes into a registry that resides on another partition or harddrive, not over a network.

Basically, I want to plug in a second hard drive and patch THAT registry without booting off of it. I tried something like this below but clearly this isn't it.
Expand|Select|Wrap|Line Numbers
  1.         Dim regKey As RegistryKey, regSubKey As RegistryKey
  2. regKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, "F:\windows")
  3.  
Naturally, "F:\Windows" is not a valid machine name since it is not a network name.

Any ideas? I've hunted around for the last couple of days and I can't find anything like this anywhere. I got LOTs of pages about remote editing and good 'ol registry editing but not like this. Any help you can provide would be REALLY appreciated. Thanks!

I should mention that this is in VB.2005.

Rod

[edited to include version of VB]
I could not find anything for you good buddy.

Do stay tuned though just in case other experts have some good ideas:-)

In a bit!

Dököll
Dec 21 '07 #2

P: 2
Dököll,

I don't mean to sound rude, but your response doesn't appear to be helpful at all. What I have seen is that since you have made a reply, my question does not show up under "view unanswered questions" any longer, making the possibility of finding someone who can answer my query even more remote.

I have been browsing this forum for some time now and I have seen some quality posts and replies from others on this forum in the past. This is why I joined this forum and posted this unusual question. I have to say that, so far, I am disappointed with the lack of any response to a valid question while other, off-topic posts are getting a lot of attention (for example: http://www.thescripts.com/forum/thread748199.html)

Is there anyone here able to at least point me in the right direction if an answer is unavailable?

Rod
Dec 24 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.