Hey Patrick,
A couple of things...
This might sound like a silly question but are you refreshing (F5) your
REGEDIT view when you have run your batch file. To see the change you
typically have to refresh if you already have REGEDIT open and at the key...
Secondly, rather than maintaining a seperate .REG file, you can use the
following command to achieve what you want - it's a bit cleaner -
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v SourcePath /t
REG_SZ /d "C:\I386" /f
Hope this helps,
Jon
www.insidetheregistry.com
--
"Patrick" <(E-Mail Removed)> wrote in message
news:5df7e0a0-5ef5-4063-a550-(E-Mail Removed)...
> Hello,
>
> I am trying to modify the following key from:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
> "SourcePath"="F:\I386"
>
> to:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
> "SourcePath"="C:\I386"
>
> using a batch file with the "REG import" command to call a .reg file.
> If I launch the batch file in a command prompt I get "The operation
> completed successfully". But after I check regedit the changes were
> not made. I
>
> f I double click on the reg file and click on yes the changes are
> made.
>
> Your help is greatly appreciated