OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: WizzyWig on 23 Apr 2003, 11:37:24

Title: Batch files
Post by: WizzyWig on 23 Apr 2003, 11:37:24
in a way this is scripting just not for in game more distubution
please dont del

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: [Select]
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
folder1\install\file2.exe
folder1\install\file2.exe
folder1\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
Title: Re:Batch files
Post by: WizzyWig on 23 Apr 2003, 18:13:11
i posted on this forum because .BAT files are quite like a script infact it is a script i just need a littel help
Title: Re:Batch files
Post by: Black_Feather on 24 Apr 2003, 00:30:28
check this page  (http://www.computerhope.com/batch.htm#02) and read the running different programs bit, I think thats what you need to do, hope that helps.