I need help with creating a batch file.

Degener8

n00b
Joined
Oct 3, 2005
Messages
2
Can someone write for me a simple batch file that will display 3 options. For instance

1. X
2. X
3. X

I just need a menu to display with 3 options. Thanks!
 
Batchrun (freeware)

Batchrun will let you create batch files using a graphical interface. In the good old days of DOS .bat files took care of this task. They still do, but they're not exactly user friendly. With Batchrun .brs batch files you can launch any number of programs or dialup connections with just a simple click. You can control the starting process with many properties like priority or run mode and control their behavior a tad. You can even do more than starting programs with the built-in file management functions like Copy, Rename, Makedir, Delete and End Process. Batchrun batch files can be launched from Explorer or placed in StartUp folder or on the Desktop.

Feature List


* Launch files of any filetype

* Internal commands: Run, Copy, Rename, Makedir, Delete, DelTree, End Process

* Wildcard support for Copy, Delete and DelTree

* Makedir nested dir creation

* Drag and Drop between Explorer and Batchrun

* Support for date and time tags

* Save batch files directly to Startup and Desktop


batchrun.gif


simply add files and programs you want to run
there are delay options as well
you can save the config as a brs file on the desktop (or wherever) and it will execute with a single click
 
Is that program hard to use? I basically need to do create a batch file to do three things.

1) Format a floppy drive
2) Display the contents of a floppy drive
3) Exit to Dos

nothing all too fancy.
 
Bit crappy but it does what you need.

@ECHO OFF
:start
ECHO.
ECHO Enter the number of Reqd. Option (1-3).
ECHO 1) Format a floppy drive
ECHO 2) Display the contents of a floppy drive
ECHO 3) Exit to Dos
set choice=
set /p choice=Choose:
if '%choice%'=='1' format a:
if '%choice%'=='2' dir a:\
if '%choice%'=='3' goto end
ECHO "%choice%" is not valid please try again
ECHO.
goto start
:end
 
Back
Top