Batch file - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 04-10-2007, 12:44 PM   #1 (permalink)
Junior Techie
 
Join Date: Jul 2006
Posts: 83
Default Batch file

I am wirting a batch file and everything is working fine, i just have one question. I am trying to make it so it has as little user intervention as possible. I have made my program so that it intslls silently, so the users dont have to worry about it, then in order to configure the program i have a .reg file that merges with the current directory to give the program the proprer configuration. No when i open the .reg file i can import it just fine, the problem comes when i merge the file it opens a box in xp asking if i truly would like to merge the .reg file. What i want to happen is the program to run and answer, yes on the popup box, so that the program can install and configure the program with no user intervention. Does anyone know a switch that i can use to force it to merge, or answer the pop up box?
__________________

steak1986 is offline  
Old 04-10-2007, 01:37 PM   #2 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default Re: Batch file

This is a good question, I'm looking..
__________________

__________________
Osiris is offline  
Old 04-10-2007, 01:50 PM   #3 (permalink)
True Techie
 
fixal0t's Avatar
 
Join Date: Oct 2006
Posts: 246
Default Re: Batch file

/f or -f should be the "force" switch.
Guess it depends on the application.
But yeah, those windows "are you sure" boxes can be pretty annoying.
__________________
Case:NZXT Trinity Silver PSU:Apevia Aspire 500W UV Green Motherboard:Asus A8N-SLI CPU:AMD Athlon 64 3500 CPU Cooler:Zalman CNPS7700-Cu Video:2x eVga nVidia GeForce 6800XT (256MB DDR) RAM:2Gig (4x512 Corsair TwinX dual channel) HDD:160Gig Seagate Barracuda SATA, 200Gig Maxtor SATA III CD/DVD:LG DVD ROM, NEC 16XDVD+-RW
(\__/) This is Bunny. Put him in your
(='.'=) signature and help him on his way
(")_(") to world domination
fixal0t is offline  
Old 04-10-2007, 02:11 PM   #4 (permalink)
Junior Techie
 
Join Date: Apr 2007
Posts: 79
Default Re: Batch file

I agree, they can be annoying. Give this a try and let me know if it works for you. I did try this out on my side first.

Code:
regedit /S test.reg
I made a batch file and put that inside of it, I didn't get any prompts at all, and the info had been added to my registry just fine.
ZenOswyn is offline  
Old 04-10-2007, 05:00 PM   #5 (permalink)
Super Techie
 
ben_ben's Avatar
 
Join Date: Feb 2006
Posts: 350
Default Re: Batch file

type /y before the code so it answers yes without asking
ben_ben is offline  
Old 04-11-2007, 09:53 AM   #6 (permalink)
True Techie
 
fixal0t's Avatar
 
Join Date: Oct 2006
Posts: 246
Default Re: Batch file

what if it's an "OK" box?
__________________
Case:NZXT Trinity Silver PSU:Apevia Aspire 500W UV Green Motherboard:Asus A8N-SLI CPU:AMD Athlon 64 3500 CPU Cooler:Zalman CNPS7700-Cu Video:2x eVga nVidia GeForce 6800XT (256MB DDR) RAM:2Gig (4x512 Corsair TwinX dual channel) HDD:160Gig Seagate Barracuda SATA, 200Gig Maxtor SATA III CD/DVD:LG DVD ROM, NEC 16XDVD+-RW
(\__/) This is Bunny. Put him in your
(='.'=) signature and help him on his way
(")_(") to world domination
fixal0t is offline  
Old 04-11-2007, 06:03 PM   #7 (permalink)
Super Techie
 
ben_ben's Avatar
 
Join Date: Feb 2006
Posts: 350
Default Re: Batch file

its a question box lol
__________________

ben_ben is offline  
Closed Thread

Thread Tools
Display Modes

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
windows xp file sharing coolray Microsoft Windows and Software 3 01-06-2008 06:08 PM
Corrupt windows XP file, wont boot XP spikoman69 Microsoft Windows and Software 4 07-07-2007 05:43 AM
Auto delete w/o prompt batch file Kratos Microsoft Windows and Software 9 04-03-2007 03:18 PM
Having trouble getting a downloaded file Bendersterrier Internet Software and Browsers 1 03-28-2007 12:42 PM
opening BIOS rom file Calibretto Microsoft Windows and Software 2 03-28-2007 07:02 AM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.