![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | merge *.reg into registry by vbscript? I need to merge a reg file into my registry before starting another Windows application. Can this be done with vbscript? I know how to start my application I just need a tip on how to merge the registry. These Oracle connecting apps need conflicting settings which I need to switch before running them. Perhaps it would be better to merge both settings files to temporary branches and only rename the top level key when needed. Any good ideas? thanks LJB |
My System Specs![]() |
| | #2 (permalink) |
| | Re: merge *.reg into registry by vbscript? "LJB" <postmaster@[127.0.0.1]> wrote in message news:eX5eghplJHA.3760@xxxxxx Quote: >I need to merge a reg file into my registry before starting another Windows >application. Can this be done with vbscript? I know how to start my >application I just need a tip on how to merge the registry. These Oracle >connecting apps need conflicting settings which I need to switch before >running them. Perhaps it would be better to merge both settings files to >temporary branches and only rename the top level key when needed. Any good >ideas? > > thanks > LJB this one: @echo off regedit /s c:\LJB.reg start /b "Oracle" "c:\Program Files\Oracle\...exe" |
My System Specs![]() |
| | #3 (permalink) |
| | Re: merge *.reg into registry by vbscript? "Pegasus (MVP)" <I.can@xxxxxx> wrote in message news:eYuGAwplJHA.4028@xxxxxx Quote: > > "LJB" <postmaster@[127.0.0.1]> wrote in message > news:eX5eghplJHA.3760@xxxxxx Quote: >>I need to merge a reg file into my registry before starting another >>Windows application. Can this be done with vbscript? I know how to start >>my application I just need a tip on how to merge the registry. These >>Oracle connecting apps need conflicting settings which I need to switch >>before running them. Perhaps it would be better to merge both settings >>files to temporary branches and only rename the top level key when needed. >>Any good ideas? >> >> thanks >> LJB > By far the simplest method would be to launch Oracle with a batch file > like this one: > @echo off > regedit /s c:\LJB.reg > start /b "Oracle" "c:\Program Files\Oracle\...exe" > WshShell.Run such as "regedt32 /s C:\ljb.reg" and "regedit /s C:\ljb.reg" without any luck. I'm running XP so I think it should be regedt32 but I'm wondering if security is preventing vbscript from changing the registry. thanks LJB |
My System Specs![]() |
| | #4 (permalink) |
| | Re: merge *.reg into registry by vbscript? "LJB" <postmaster@[127.0.0.1]> wrote in message news:eyXkQ3plJHA.1340@xxxxxx Quote: > > "Pegasus (MVP)" <I.can@xxxxxx> wrote in message > news:eYuGAwplJHA.4028@xxxxxx Quote: >> >> "LJB" <postmaster@[127.0.0.1]> wrote in message >> news:eX5eghplJHA.3760@xxxxxx Quote: >>>I need to merge a reg file into my registry before starting another >>>Windows application. Can this be done with vbscript? I know how to start >>>my application I just need a tip on how to merge the registry. These >>>Oracle connecting apps need conflicting settings which I need to switch >>>before running them. Perhaps it would be better to merge both settings >>>files to temporary branches and only rename the top level key when >>>needed. Any good ideas? >>> >>> thanks >>> LJB >> By far the simplest method would be to launch Oracle with a batch file >> like this one: >> @echo off >> regedit /s c:\LJB.reg >> start /b "Oracle" "c:\Program Files\Oracle\...exe" >> > I'm beginning to think so too. I've tried a number of variations of > WshShell.Run such as "regedt32 /s C:\ljb.reg" and "regedit /s C:\ljb.reg" > without any luck. I'm running XP so I think it should be regedt32 but I'm > wondering if security is preventing vbscript from changing the registry. > > thanks > LJB it's always regedit.exe. You can, of course, use a VB Script file to write data into the registry. It's more involved than the batch file solution but it can be done. You mention that you were unsuccessful for reasons unknown - let's have a look at your script and the error message you see! |
My System Specs![]() |
| | #5 (permalink) |
| | Re: merge *.reg into registry by vbscript? "Pegasus (MVP)" <I.can@xxxxxx> wrote in message news:uqk719plJHA.3760@xxxxxx Quote: > > "LJB" <postmaster@[127.0.0.1]> wrote in message > news:eyXkQ3plJHA.1340@xxxxxx Quote: >> >> "Pegasus (MVP)" <I.can@xxxxxx> wrote in message >> news:eYuGAwplJHA.4028@xxxxxx Quote: >>> >>> "LJB" <postmaster@[127.0.0.1]> wrote in message >>> news:eX5eghplJHA.3760@xxxxxx >>>>I need to merge a reg file into my registry before starting another >>>>Windows application. Can this be done with vbscript? I know how to start >>>>my application I just need a tip on how to merge the registry. These >>>>Oracle connecting apps need conflicting settings which I need to switch >>>>before running them. Perhaps it would be better to merge both settings >>>>files to temporary branches and only rename the top level key when >>>>needed. Any good ideas? >>>> >>>> thanks >>>> LJB >>> >>> By far the simplest method would be to launch Oracle with a batch file >>> like this one: >>> @echo off >>> regedit /s c:\LJB.reg >>> start /b "Oracle" "c:\Program Files\Oracle\...exe" >>> >> I'm beginning to think so too. I've tried a number of variations of >> WshShell.Run such as "regedt32 /s C:\ljb.reg" and "regedit /s C:\ljb.reg" >> without any luck. I'm running XP so I think it should be regedt32 but I'm >> wondering if security is preventing vbscript from changing the registry. >> >> thanks >> LJB > No, regedt32 was a variant of regedit.exe under Windows 2000. Under WinXP > it's always regedit.exe. > > You can, of course, use a VB Script file to write data into the registry. > It's more involved than the batch file solution but it can be done. You > mention that you were unsuccessful for reasons unknown - let's have a look > at your script and the error message you see! > some spaces in it. Its working now. thanks |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| VBScript to traverse all Registry keys | VB Script | |||
| VBScript to traverse all Registry keys | VB Script | |||
| Re: remote registry merge - plase help | VB Script | |||
| How to rename a registry key using vbscript? | VB Script | |||
| vbscript registry exist then...... | VB Script | |||