Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

HELP - how do I suppress a YES prompt installing a .REG file from a batch script?

Thread Tools
 
Search this Thread
 
Old Feb 22, 2006 | 04:49 PM
  #1  
Dr Hu's Avatar
Dr Hu
Thread Starter
Scooby Regular
25 Year Member
Liked
Loved
 
Joined: Jul 1999
Posts: 2,835
Likes: 28
From: Shropshire
Question HELP - how do I suppress a YES prompt installing a .REG file from a batch script?

As title - i need to do a mass registry change to change a software setting across our LAN - I have built a very simple batch file to run the .reg file from a share, but I really would like to suppress the 'Do you want to install this file to the registry' prompt, and the later 'blah.reg successfully installed into the registry' prompt.

I thought the /y option might have done it but to no avail......

Any ideas?

sample batch line:-

\\dc2\cabatch\caexpres.reg /y

I realise the /y works on say a COPY command as it is a proper switch for the copy.exe program.......but obviously i'm not really running a proper command - is there a way to invoke regedit and do it that way?
Reply
Old Feb 22, 2006 | 05:58 PM
  #2  
jpor's Avatar
jpor
Scooby Regular
iTrader: (1)
 
Joined: Sep 2003
Posts: 3,109
Likes: 0
Default

Originally Posted by Dr Hu
As title - i need to do a mass registry change to change a software setting across our LAN - I have built a very simple batch file to run the .reg file from a share, but I really would like to suppress the 'Do you want to install this file to the registry' prompt, and the later 'blah.reg successfully installed into the registry' prompt.

I thought the /y option might have done it but to no avail......

Any ideas?

sample batch line:-

\\dc2\cabatch\caexpres.reg /y

I realise the /y works on say a COPY command as it is a proper switch for the copy.exe program.......but obviously i'm not really running a proper command - is there a way to invoke regedit and do it that way?
You could try this:

\\dc2\cabatch\caexpres.reg <y

or create a y.txt file put a y in the file and do this:

\\dc2\cabatch\caexpres.reg <y.txt
Reply
Old Feb 22, 2006 | 06:41 PM
  #3  
HankScorpio's Avatar
HankScorpio
Scooby Regular
 
Joined: Feb 2004
Posts: 5,848
Likes: 0
Default

REGEDIT /S \\dc2\cabatch\caexpres.reg
Reply
Old Feb 23, 2006 | 11:00 AM
  #4  
Dr Hu's Avatar
Dr Hu
Thread Starter
Scooby Regular
25 Year Member
Liked
Loved
 
Joined: Jul 1999
Posts: 2,835
Likes: 28
From: Shropshire
Thumbs up

Thanks HankScorpio that worked a treat - I thought you could do it with REGEDIT - i even did a regedit /? to find the switches but is just opened regedit directly

Thanks again
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
Jul 2, 2023 01:54 PM
Lillyart14
ScoobyNet General
24
Oct 1, 2015 01:29 AM
yabbadoo4
ScoobyNet General
11
Sep 30, 2015 10:33 PM
Nick_Cat
Computer & Technology Related
2
Sep 26, 2015 08:00 AM
Littleted
Computer & Technology Related
0
Sep 25, 2015 08:44 AM




All times are GMT +1. The time now is 12:29 AM.