PC Review


Reply
Thread Tools Rate Thread

A batch file that will not prompt for an action

 
 
=?Utf-8?B?U2FtYW50aGE=?=
Guest
Posts: n/a
 
      29th Mar 2004
Hi All

I would like to create a batch file that does not prompt me to choose an option. I have exported a registry DWORD value which I would like to add to all the workstations; however, when you click on the *.reg file it prompts for an option of "yes" or "no" to add the value to the registry. I have created a batch file to run from the server to install at startup on all the workstations, but I do not know what switch if there is one to use in the batch file to automatically choose yes

C:\ Start updatetopleveldnszones.re

This opens the file, which asks if I would like to add this value to the registry "yes" or "No". I would like to know what to add to the above to make the program automatically choose "yes" without end user interaction. Thanks

Best regards

Samantha
 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      29th Mar 2004
In microsoft.public.win2000.cmdprompt.admin =?Utf-8?B?U2FtYW50aGE=?=
wrote:

> Hi All,
>
> I would like to create a batch file that does not prompt me to
> choose an option. I have exported a registry DWORD value which I
> would like to add to all the workstations; however, when you click
> on the *.reg file it prompts for an option of "yes" or "no" to add
> the value to the registry. I have created a batch file to run
> from the server to install at startup on all the workstations, but
> I do not know what switch if there is one to use in the batch file
> to automatically choose yes.
>
> C:\ Start updatetopleveldnszones.reg
>
> This opens the file, which asks if I would like to add this value
> to the registry "yes" or "No". I would like to know what to add
> to the above to make the program automatically choose "yes"
> without end user interaction. Thanks.


regedit.exe /S <path>\updatetopleveldnszones.reg
"/S" for silent.

You can use a START but likely don't need to.
regedit.exe should set an errorlevel. You should test that in your
environment if you need to.


 
Reply With Quote
 
=?Utf-8?B?U2FtYW50aGE=?=
Guest
Posts: n/a
 
      29th Mar 2004
Hi Mark

Thanks I will try it.
 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      30th Mar 2004
In microsoft.public.win2000.cmdprompt.admin =?Utf-8?B?U2FtYW50aGE=?=
wrote:

> Hi Mark,
>
> I tried it "C:\ /S Start updatetopleveldnszones.reg" and it did
> not work. What should I do next?
>


>
> regedit.exe /S <path>\updatetopleveldnszones.reg



explicitly execute the regedit.exe registry editor to import (merge)
the .REG files and do it silently.

> regedit.exe /S <path>\updatetopleveldnszones.reg


Where "<path>"= a fully qualified path to the .REG file if not in the
(presume) netlogon location.
 
Reply With Quote
 
Michael Bednarek
Guest
Posts: n/a
 
      30th Mar 2004
On Mon, 29 Mar 2004 15:16:07 -0800, "Samantha"
<(E-Mail Removed)> wrote in
microsoft.public.win2000.cmdprompt.admin:

>Hi Mark,
>
>I tried it "C:\ /S Start updatetopleveldnszones.reg" and it did not work. What should I do next?


I suggest you do what Mark suggested. To repeat:

On Mon, 29 Mar 2004 14:13:27 -0800, Mark V <(E-Mail Removed)> wrote
in microsoft.public.win2000.cmdprompt.admin:

>regedit.exe /S <path>\updatetopleveldnszones.reg
>"/S" for silent.
>
>You can use a START but likely don't need to.
>regedit.exe should set an errorlevel. You should test that in your
>environment if you need to.


--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A prompt for TransferSpreadsheet Action in the File Name =?Utf-8?B?aG9sbHk=?= Microsoft Access Macros 1 23rd Mar 2007 08:45 PM
C# - Installer - Sample code to run batch file via custom action =?Utf-8?B?c3RldmU=?= Microsoft C# .NET 1 29th May 2006 10:35 PM
How do I setup batch file in custom action Hank Microsoft Dot NET 0 10th Jan 2006 06:43 PM
Prompt for String in Batch File John Ward Windows XP Help 1 6th Apr 2005 07:40 PM
Creating a prompt in a batch file Thanatos Microsoft Windows 2000 CMD Promt 15 10th Oct 2003 08:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:18 PM.