Name: pipipo Date: February 25, 2008 at 18:58:51 Pacific Subject: User Input OS: XP CPU/Ram: not sure Model/Manufacturer: IBM
Comment:
Hi all, i am given a task to write a batch file that will allow user to put in input(maybe just Y/N) and it will act accordingly. IF their input is Y then it will open one excel file n one word file and if the input is N den it will juz shut the program.. anyone about to help? thanks lots
Does that work on DOS?! Last time I checked, on DOS (and Win9x) you have to use CHOICE.EXE, that comes with the OS but doesn't seem to be present in NT/2K/XP. In real DOS, that should be:
CHOICE /C:YN "question" IF ERRORLEVEL 1 GOTO END ... do what you have to do here .... :END
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE