|
#1
|
|||
|
|||
|
.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
|
|||
|
|||
|
Quote:
|
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Guess this is another of those Off-Topic posts that waste space on this forum.
|
![]() |
|
|