Need Some Help Basic Batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rakhtar87
Posts: 1
Joined: 04 Sep 2015 12:23

Need Some Help Basic Batch

#1 Post by rakhtar87 » 04 Sep 2015 12:41

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! :)

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Need Some Help Basic Batch

#2 Post by Squashman » 04 Sep 2015 13:29

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

Meerkat
Posts: 89
Joined: 19 Jul 2015 02:27
Location: Philippines

Re: Need Some Help Basic Batch

#3 Post by Meerkat » 05 Sep 2015 03:52

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

Post Reply