My kung-fu with regards to scripting is weak. That said I am pretty sure that the code below should work.
In brief it should go like this:
The batch file creates a directory and then copies files to it using xcopy /E (don't know why, but 'copy' doesn't do it.). At the end of the batch file I run 'regedit /s source.reg'.
The problem is that the registry changes are not taking place.
In closing, I would like to mention that I have read the following:
--> VB Script DOES NOT WORK
--> I know where/what reg keys need to be altered ... so this is a mute point.
The code and images are attached.
REM This batch file will copy the I386 folder to the "C:\I386" folder and enter the proper registry entries
REM to eliminate the need to have a Windows XP Disk when installing/uninstalling Windows components.
REM Create destination directory
REM Get I386 to the root of 'C'
xcopy I386 c:\I386 /E
REM Next we will merge the necessary registry entries to point to 'C:\I386'
regedit /s source.reg
Windows Registry Editor Version 5.00