473,385 Members | 1,753 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,385 software developers and data experts.

Editing the registry on a different partition

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
2 2023
Dököll
2,364 Expert 2GB
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
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

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

Similar topics

0
by: sandeep G | last post by:
I've a table which has a number & a blob column, both of which are NOT NULL type. This table is composite partitioned using range & hash on the same column. Each partition is sub partitioned into...
3
by: jcgeorge | last post by:
I have a Windows DPF (v8.2.2) environment. 2 Nodes 5 Partitions Server1 - Cat (0) Data (1) Data (2) Server2 - Data (3) Data (4) I want to use block-based IO, but I do not want the same size...
1
by: thomasb | last post by:
When setting up federation between two databases on the same instance everything works fine. When trying to do the same between two databases on different instances on the same machine I get...
8
by: Al Kaufman | last post by:
I have a simple console app that uses: regSubKey = <some registry key> Dim reg As RegistryKey = Registry.ClassesRoot.OpenSubKey(regSubKey) Dim path As String path = CStr(reg.GetValue(""))
5
by: Bob Stearns | last post by:
I have a table t1(id, other stuff) with 4 dependent (unrelated) tables ta(id, date, other stuff a), tb(id, date, other stuff b), tc(id, date, other stuff c), td(id, date, other stuff d). Any or all...
49
by: indiauday | last post by:
Hello friends, I am new user to this community. My problem is when I try to open registry editor by start> run > regedit, it displays this message. "Registry...
5
by: gbngrg | last post by:
I have no idea with what i got infected. But i lost my task manager (got that fixed but), Registry editing has been disabled, run tab and shutdown tab in the start menu is missing. Now even though i...
3
by: Rafath | last post by:
Hello iam new to this forum but i hope this will help me in solving the case The error iam getting is "Registry editing has been disabled please contact your system administrator" mines is a...
4
AnuSumesh
by: AnuSumesh | last post by:
Hi, One of our customer has following requirement: When user login to web site, some key should be added to client side registry and when he logs off, then that key should be deleted from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.