Solved Can you make a form in a batch file?

June 9, 2011 at 14:20:01
Specs: Windows 7 Home Premium, Intel Pentium inside
I was just wondering... like in Microsoft Word 5.5 setup (which Microsoft put out as open source software some time ago), can you create form elements, such as combo boxes or text areas? I don't want it to open a new window, though.

See More: Can you make a form in a batch file?

Report •

June 10, 2011 at 16:43:45
✔ Best Answer
It's not possible with batch.

It is possible with other languages inside a console window, but unless you can find a utility that someone has wrote, or a library, it can take LOTS of effort.

I have written programs like this(in my own crude way) in c++ with the windows API that come out at ~9000 lines of code. It could be done more efficiently that this but if you want complex input fields in a console window expect to put in some serious effort if you want to do it yourself.

Check out a couple of the programs here:

Report •

June 11, 2011 at 08:17:17
you could make a form like bat file,

they would have to use enter to go through it.

then pipe it to a text file.

something like

@echo off
echo enter your selection here

prompt /p textentered1=
echo textentered1>>textentered.txt
you can echo what ever you want here to make the txt file look alright.


Report •

June 13, 2011 at 14:32:22
Well, is there a way to put list boxes in an 16-bit DOS .exe file like Word?

Report •

Related Solutions

June 13, 2011 at 21:10:17
You could do this:

@echo off
echo Question with choices?
echo 1) choice 1
echo 2) choice 2
echo 3) choice 3
echo 4) choice 4
set /p q1=""
if %q1% == 1 goto q2
if %q1% == 2 goto q2
if %q1% == 3 goto q2
if %q1% == 4 goto q2
goto q1
echo Question without choices?
set /p q2=""
goto q3
. . .

Report •

June 14, 2011 at 13:14:28
I know how to do that, but the main thing I am focusing on is a list box. I appreciate your other help, though.

Report •

Ask Question