org.proteios.install
Class Input2File
java.lang.Object
org.proteios.install.Input2File
public class Input2File
- extends Object
Support class for user input to *.bat files
Usage: Input2File outfile inputvariable {promptfile [mask_input|no_input|no_input_convert_backslashes]]
Intended to be called from batch files to request input
from users via the keyboard. The input is stored in a command
in the output batch file given as first argument, and the
specified environment variable can then be set to the input value
from the calling batch file by letting it execute (call) the
output batch file. It is the calling batch file's responsibility
to remove the output batch file after use. An optional
prompt file (file with prompt text) can be used to
specify the prompt to use for user input.
If a fourth argument equal to the string "mask_input"
(without quotation marks) exists, the input will be masked.
If a fourth argument equal to the string "no_input"
(without quotation marks) exists, the user will not be
asked for input, but the text string in the prompt file
will be used as input. In this case the program works as
a simple support routine helping to set an environment
variable to the value stored in the prompt file.
If a fourth argument equal to the string "no_input_convert_backslashes"
(without quotation marks) exists, the program will function
as for "no_input", except that all backslashes "\" will be
exchanged for slashes "/". Used to convert Windows directory
notation to web-standard directory notation, e.g. "C:\extra"
is exchanged for "C:/extra".
- Version:
- 2.0
- Author:
- Olle
|
Method Summary |
static void |
main(String[] args)
main(String args[])
Uses class PasswordField. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Input2File
public Input2File()
main
public static void main(String[] args)
- main(String args[])
Uses class PasswordField.
Performs initialization and storage
of (read) input into output batch file.