Go Back   FileForums > Game Backup > PC Games
Register FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23-04-2003, 09:08
wizzywig wizzywig is offline
Junior Member
 
Join Date: Oct 2002
Location: NoT oN eArTh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
wizzywig
.Bat help

hi im trying to make an auto install .bat file i have managed to get all the files installing but i need i know how to make the batch file ask yes or no for each file just in case you dont need to install some of the files.

E.G

start the batch file (e.g wizzywig.bat)

then this script is run (this is just a simple one not the on im going to use

Code:
echo i need it to ask yes or no at start of each install prosses
rem
rem WIZZYWIG INSTALLER
rem
@echo off
setup.exe
echo --------->>Wizzywig<<---------
echo ------->>is now open<<-------
echo off
folder1\install\file1.exe
folder2\install\file2.exe
folder3\install\file3.exe
folder4\install\intro.exe



then when it is About to install the setup.exe it asks do u wont to continue YES/NO.

if i type yes the program is installed and then moves on to the next install (e.g file1.exe)

Now if i typed no i would like the program to still move on to next file ask again if the file is to be installed.

a basic bat file is needed but i have look across the world for some help and havent had any luck if any one can help me in any way please drop me a pm or email me thanks alot.

wizzywig
__________________
[IMG]http://members.lycos.co.uk/etoclan/new%20face.gif[/IMG] [IMG]http://www.etoclan.netfirms.com/marijuana.jpg[/IMG]
Sponsored Links
  #2  
Old 23-04-2003, 09:31
HughBackov HughBackov is offline
Member
 
Join Date: Oct 2002
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
HughBackov
Lightbulb Re: .Bat help

Quote:
Originally posted by wizzywig
i need i know how to make the batch file ask yes or no for each file
If you are using Windows 9X or ME you can use the CHOICE command to prompt for input. The COPY and XCOPY commands can also be set to always prompt before replacing existing files.
  #3  
Old 23-04-2003, 10:06
wizzywig wizzywig is offline
Junior Member
 
Join Date: Oct 2002
Location: NoT oN eArTh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
wizzywig
im useing xp i tryed that and i did not work i need a comand system that asks yes or on at beginning of each file install

so say i wont to install intro.exe i would run the wizzywig.bat and a dos screen comes up the it asks me if i wont to install if i select yes it runs intro.exe then moves on to next file but if i select no it still moves on to next file and if posible if i select skip i just shuts down the dos command and finish the wizzywig.bat commands all together
__________________
[IMG]http://members.lycos.co.uk/etoclan/new%20face.gif[/IMG] [IMG]http://www.etoclan.netfirms.com/marijuana.jpg[/IMG]
  #4  
Old 23-04-2003, 10:40
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
try using the choice line in the batchfile example:

@echo off
:BEGIN
CHOICE /N /C:YN ARE BAT FILES DEAD ? (Y,N)%1
IF ERRORLEVEL ==2 GOTO NO
IF ERRORLEVEL ==1 GOTO YES
GOTO END
:NO
ECHO No, you are wrong!
GOTO END
:YES
echo yeh i agree
GOTO END
:END
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
  #5  
Old 23-04-2003, 14:22
wizzywig wizzywig is offline
Junior Member
 
Join Date: Oct 2002
Location: NoT oN eArTh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
wizzywig
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>"C:\Documents and Settings\karl\Desktop\testyn.bat
'CHOICE' is not recognized as an internal or external command,
operable program or batch file.
No, you are wrong!

C:\WINDOWS\system32>
__________________
[IMG]http://members.lycos.co.uk/etoclan/new%20face.gif[/IMG] [IMG]http://www.etoclan.netfirms.com/marijuana.jpg[/IMG]
  #6  
Old 23-04-2003, 16:14
TippeX's Avatar
TippeX TippeX is offline
zeroes and ones.....
 
Join Date: Jan 2003
Posts: 3,842
Thanks: 2
Thanked 33 Times in 23 Posts
TippeX is on a distinguished road
odd its available in my win2k
__________________
bleh
DO NOT PM me with questions, leave that in the forums...ESPECIALLY if i dont know you...
  #7  
Old 23-04-2003, 16:42
Black Diamond Black Diamond is offline
Banned
 
Join Date: Mar 2003
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
Black Diamond
Guess this is another of those Off-Topic posts that waste space on this forum.
Closed 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

Forum Jump



All times are GMT -7. The time now is 15:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com