On Fri, Feb 27, 2009 at 12:10 PM, Fabrício Ceolin <ceo...@ulevel.com> wrote:
> Hi,
>
> How can I get modified cells from dialog using --form under dos?
>
> ex:
> dialog --title "aaa" --form "choice" 50 78 100 Form1 1 0 " " 1 30 55 256
> Form2 2 0 MG9310077 2 30 55 256

If you are trying to do complex scripts using dialog, I would
recomment using the DJGPP port of BASH because it provides much more
powerful scripting capabilities than batch files.  If you are using
FreeCOM, you can use "set /E VAR=command line and arguments" to
capture the output of dialog into a variable.  In dialog's output, the
two form entries will be printed to stdout, separated by a newline.
To separate these into two environment variables in batch, here's one
possiblity (which requires head and tail; common unix utilities for
which there are several dos ports and clones):

dialog --stdout options... > %TEMP%\temp.var
set /E VAR1=head -n 1 %TEMP%\temp.var
set /E VAR2=tail -n 1 %TEMP%\temp.var

Of course there are probably many utilities out there that will output
specific lines in files to stdout; head and tail are just the easiest
examples that come to mind at the moment

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to