COMMANDLINE INTERFACE WRAPPER

BASICS
This is just a simple program to present a graphical user interface for commandline programs.

The interface is defined by a simple HTML page. On this page you should include a form like this:

<form name=CmdLine>
<input type=hidden name="CmdLineTitle" value="Your Title">
<input type=hidden name="CmdLineWidth" value="600">
<input type=hidden name="CmdLineHeight" value="400">
<input type=hidden name="CmdLineExe" value="yourprog.exe">
</form>
<button id=CmdLineRun>Run it</button>


You should save the HTML page with the same name as (you renamed) the CmdLine.Exe file, but ending with .htm

When you run the (renamed) CmdLine.Exe a window will show the HTML page in a frame with title 'Your Title' and of size 600 by 400

When you click the button, 'yourprog.exe' will start in a console window.

PARAMETERS
Now the interesting part.. you can supply parameters to 'yourprog.exe' by adding input fields and/or selectboxes to your form:

a) text input
<input name="-a" value="test">

becomes parameter '-a test'

of course, the user can override test with anything typed in the text input field

b) checkbox
<input type="checkbox" name="-b" value="test">

becomes parameter '-b test' if and only if the user has checked the checkbox

<input type="checkbox" name="-b" value="">

becomes parameter '-b' if and only if the user has checked the checkbox

c) radio
<input type="radio" name="-c" value="1">
<input type="radio" name="-c" value="2">

becomes parameter '-c 2' when the user has selected the second radio button

d) selectbox
<select name="-d">
<option value="">
<option value="1">1
<option value="2">2
</select>


becomes parameter '-d 1' when the user has selected the option with value 1

note that '-d ..' will not be included when the user has selected the empty option

e) file
<input type="file" name="-f">

becomes parameter '-f c:\autoexec.bat' when the user has browsed to that file and clicked ok

LAYOUT
To control the layout, the easiest might be to wrap the whole HTML in the following:

<div style="width=100%; height=100%; background-color:#ffffcc; font-family:Verdana,Arial;">
...
</div>


and tweak background-color etc. to your own likings

Start sample\wgetgui.exe to see this all functioning

REQUIREMENTS
The program uses Internet Explorer facilities to display the HTML, so a reasonable version of IE should be present

CONTACT
Contact the author at info@devq.net
The latest version/download is at http://www.devq.net/cmdline/