Page 1 of 1

Need Some Help Basic Batch

Posted: 04 Sep 2015 12:41
by rakhtar87
Im a freshman college student taking a Virtualization class. We are using VMWare and using FreeDos. Our instructor not giving us any background on Batch or reading material asked us to use the internet and make a Batch file that does the following.

Create a display menu in a batch file that presents four choices:
Type D to display the date.
Type V to display the version.
Type L to display a listing of files
Type E to exit this menu.
Be sure that your batch file has a graceful exit, and is able to handle errors in input.

Im using Notepad++ to get started writing my script and all ive got down so far is:

ECHO off

Im stumped and havent found the help I need so I am posting here. Im sure this is very basic to most of you but any help would be greatly appreciated! :)

Re: Need Some Help Basic Batch

Posted: 04 Sep 2015 13:29
by Squashman

Code: Select all

http://help.fdos.org/en/hhstndrd/batch/
http://help.fdos.org/en/hhstndrd/batch/echo.htm
http://help.fdos.org/en/hhstndrd/batch/choice.htm

Re: Need Some Help Basic Batch

Posted: 05 Sep 2015 03:52
by Meerkat
Squashman wrote:

Code: Select all

http://help.fdos.org/en/hhstndrd/batch/
http://help.fdos.org/en/hhstndrd/batch/echo.htm
http://help.fdos.org/en/hhstndrd/batch/choice.htm


Hmm... There is an example at

Code: Select all

http://help.fdos.org/en/hhstndrd/batch/choice.htm
that looks like what you need :)

Meerkat