Batch file programming - TechRepublic
General discussion
October 14, 2004 at 10:06 AM
zeealen247

Batch file programming

by zeealen247 . Updated 21 years, 7 months ago

How do I create a batch file to do something like this:
@echo off
c:
cd\
echo About to FORMAT drive A…
echo Proceed or Abort P/A [where p =Proceed and A=Abort]-the bracket and its content not included please.
Something like that… so that the user is given a set of predefined characters to type to effect some actions. like Procced or Abort P/A
And when the user strikes the “P” key the computer should proceed and when the user does the opposite the computer should Abort the operation.

This discussion is locked

All Comments