running  a batchfile with run once registry key

shyam pothini
shyam pothini used Ask the Experts™
on
hello there

I am trying run a batch file which is added to run registry. the batch file call a registry file saved on the system
command I used is
regedit.exe /s c:\windows\custom.reg

After user logs in it runs good, but it will pop up "Adding information can unintentionally change or delete values and cause components to stop working" Are you sure you want  to continue.

How can I suppress this message.

Regards'
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2018
Commented:
Use
reg.exe import regfile.reg
instead.
Distinguished Expert 2018

Commented:
Author abandoned. Known and proven solution was provided.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial