Batch file to add/copy/delete contents of Registry

Hi, I am trying to create a batch file to add/copy or delete contents of registry... My system has windows 2000 resource kit and am able to use the reg utility by using the following command

reg add "HKLM\Software\ABCTemp"

reg copy "HKLM\Software\ABCSW\KEY1" "HKLM\Software\ABCTemp\KEY1" /s

However not all systems have the resource kit installed. Is there any other way I can do the above by using batch files..

Thanks for your help
Kwaish
kwaishAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
There are other tools that do the same, but basically doesn't change the problem: you need to have some tool to perform the registry operations. You should stick (enforce) the tool reg.exe (not necessarily the entire resource kit)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee W, MVPTechnology and Business Process AdvisorCommented:
Actually, the REG command is from the Support Tools, if I recall.  Why not simply have your batch file check for the existance of REG and if not found, copy it to the system?

IF NOT EXIST %WINDIR%\SYSTEM32\REG.EXE COPY \\SERVER\SHARE\REG.EXE %WINDIR%\SYSTEM32

Obviously, you have to place REG.EXE on a share someplace.

kwaishAuthor Commented:
Can i have a .reg file and run the reg file from batch file?
Can I copy something using a .reg file

This is for sending out to customers and they will not be ready to copy reg.exe or something other than default windows tools..

jkrCommented:
>>an i have a .reg file and run the reg file from batch file?

Sure. Use

regedit /s somefile.reg
jkrCommented:
BTW, '/s'  tells regedit to use the 'silent' mode, without user interaction.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.