rconn
Administrator
- May
- 13,681
- 256
Staff member
Command Line constructor custom DIALOGs for batch files
Command-line constructor Dialogs for batch files would work like the command dialogs currently do.
Maybe the interface files could work like HTML forms. For example:
To construct a command like:
abatch.btm [/R] [O:[|n|i] [/F"filename"] [/G filename2]
<form action="abatch.btm">
<br><input name="/R" type="checkbox">Recurse
<br>Order:<select name="/O:">
<option value="" SELECTED>(not specified)
<option value="n">Name
<option value="i">Description
</select>
<br>Filename:<input type='text' name='/F"' width='32'>
<br>Another Filename <input type='file' name='/G'>
</form>
The /R option would not be added to the command line if it was unchecked.
The /O option would not be added to the command line if the selection was (not specified) .
The /F" option would not be added if there was no input, but the filename would be surrounded by quotes if a file was specified.
The /G option would not be added if there was no input, and the filechooser subdialog would be used.
Tim Pease on November 30, 2012 19:26
Command-line constructor Dialogs for batch files would work like the command dialogs currently do.
Maybe the interface files could work like HTML forms. For example:
To construct a command like:
abatch.btm [/R] [O:[|n|i] [/F"filename"] [/G filename2]
<form action="abatch.btm">
<br><input name="/R" type="checkbox">Recurse
<br>Order:<select name="/O:">
<option value="" SELECTED>(not specified)
<option value="n">Name
<option value="i">Description
</select>
<br>Filename:<input type='text' name='/F"' width='32'>
<br>Another Filename <input type='file' name='/G'>
</form>
The /R option would not be added to the command line if it was unchecked.
The /O option would not be added to the command line if the selection was (not specified) .
The /F" option would not be added if there was no input, but the filename would be surrounded by quotes if a file was specified.
The /G option would not be added if there was no input, and the filechooser subdialog would be used.
